hugo/docs/content/en/functions/strings.ContainsNonSpace.md
2023-08-07 10:38:12 +02:00

763 B
Raw Blame History

title description categories menu keywords signature relatedfuncs
strings.ContainsNonSpace Reports whether a string contains any non-space characters as defined by Unicodes White Space property.
functions
docs
parent
functions
whitespace space
strings.ContainsNonSpace STRING
strings.Contains
strings.ContainsAny
{{ 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.