hugo/docs/content/en/functions/strings/ContainsNonSpace.md
2023-10-20 09:43:56 +02:00

917 B
Raw Blame History

title description categories keywords menu function relatedFunctions aliases
strings.ContainsNonSpace Reports whether a string contains any non-space characters as defined by Unicodes White Space property.
functions
docs
parent
functions
aliases returnType signatures
bool
strings.ContainsNonSpace STRING
strings.Contains
strings.ContainsAny
strings.ContainsNonSpace
strings.HasPrefix
strings.HasSuffix
/functions/strings.containsnonspace
{{ strings.ContainsNonSpace "\n" }}     → false
{{ strings.ContainsNonSpace " " }}      → false
{{ strings.ContainsNonSpace "\n abc" }} → true

Common white space characters include:

'\t', '\n', '\v', '\f', '\r', ' '

See the Unicode Character Database for a complete list.