MCPcopy Create free account
hub / github.com/comaps/comaps / IsASCIISpace

Function IsASCIISpace

libs/base/string_utils.hpp:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157// std::isspace is locale-dependent and fails for trailing UTF-8 characters.
158template <std::integral T>
159inline constexpr bool IsASCIISpace(T c)
160{
161 switch (c)
162 {
163 case ' ':
164 case '\f':
165 case '\n':
166 case '\r':
167 case '\t':
168 case '\v': return true;
169 default: return false;
170 }
171}
172
173bool IsASCIILatin(UniChar c);
174

Callers 5

ParseMaxspeedTagFunction · 0.85
TrimLeadingSpacesFunction · 0.85
ParseRoadShieldMethod · 0.85
TrimFunction · 0.85
OSMDistanceToMetersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected