MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsWhitespace

Function IsWhitespace

src/string_func.h:143–146  ·  view source on GitHub ↗

* Check whether UNICODE character is whitespace or not, i.e. whether * this is a potential line-break character. * @param c UNICODE character to check * @return a boolean value whether 'c' is a whitespace character or not * @see http://www.fileformat.info/info/unicode/category/Zs/list.htm */

Source from the content-addressed store, hash-verified

141 * @see http://www.fileformat.info/info/unicode/category/Zs/list.htm
142 */
143inline bool IsWhitespace(char32_t c)
144{
145 return c == 0x0020 /* SPACE */ || c == 0x3000; /* IDEOGRAPHIC SPACE */
146}
147
148/* Needed for NetBSD version (so feature) testing */
149#if defined(__NetBSD__) || defined(__FreeBSD__)

Callers 7

IConsoleHistoryAddFunction · 0.85
NextLineMethod · 0.85
SetFilterTermMethod · 0.85
NextMethod · 0.85
PrevMethod · 0.85
NextMethod · 0.85
PrevMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected