Lines Matching +full:case +full:- +full:sensitive
2 // Use of this source code is governed by a BSD-style license that can be
32 // C standard-library functions that aren't cross-platform are provided as
34 // then implemented as inline calls to the platform-specific equivalents in the
35 // platform-specific headers.
37 // Wrapper for vsnprintf that always null-terminates and always returns the
62 // BSD-style safe and consistent string copy functions.
64 // Copies at most |dst_size|-1 characters, and always NULL terminates |dst|, as
78 // - 's' and 'c' without an 'l' length modifier. %s and %c operate on char
81 // - 'S' and 'C', which operate on wchar_t data on all systems except Windows,
84 // - 'F', which is not identified by Windows wprintf documentation.
85 // - 'D', 'O', and 'U', which are deprecated and not available on all systems.
94 // ASCII-specific tolower. The standard library's tolower is locale sensitive,
97 return (c >= 'A' && c <= 'Z') ? (c + ('a' - 'A')) : c; in ToLowerASCII()
100 return (c >= 'A' && c <= 'Z') ? (c + ('a' - 'A')) : c; in ToLowerASCII()
103 // ASCII-specific toupper. The standard library's toupper is locale sensitive,
106 return (c >= 'a' && c <= 'z') ? (c + ('A' - 'a')) : c; in ToUpperASCII()
109 return (c >= 'a' && c <= 'z') ? (c + ('A' - 'a')) : c; in ToUpperASCII()
112 // Converts the given string to it's ASCII-lowercase equivalent.
116 // Converts the given string to it's ASCII-uppercase equivalent.
120 // Functor for case-insensitive ASCII comparisons for STL algorithms like
124 // because case mappings might change the number of characters, depend on
125 // context (combining accents), and require handling UTF-16. If you need
135 // Like strcasecmp for case-insensitive ASCII characters only. Returns:
136 // -1 (a < b)
139 // (unlike strcasecmp which can return values greater or less than 1/-1). For
145 // Equality for ASCII case-insensitive comparisons. For full Unicode support,
158 // Therefore, DO NOT USE THESE AS A GENERAL-PURPOSE SUBSTITUTE FOR DEFAULT
159 // CONSTRUCTORS. There is only one case where you should use these: functions
161 // accessor), and don't have an empty string to use (e.g. in an error case).
168 // encoding. Null-terminated. The ASCII versions are the whitespaces as defined
175 // Null-terminated string representing the UTF-8 byte order mark.
179 // if any characters were removed. |remove_chars| must be null-terminated.
191 // |replace_chars| must be null-terminated.
210 // The 8-bit version only works on 8-bit characters, not UTF-8.
213 // the normal usage to trim in-place).
230 // Truncates a string to the nearest UTF-8 character that will leave
277 // string be 8-bit or UTF8? It contains only characters that are < 256 (in the
278 // first case) or characters that use only 8-bits and whose 8-bit
279 // representation looks like a UTF-8 string (the second case).
282 // valid but also if it doesn't contain any non-character codepoint
285 // there's a use case for just checking the structural validity, we have to
289 // if it is not the case.
300 // Compare the lower-case form of the given string against the given
301 // previously-lower-cased ASCII string (typically a constant).
307 // Performs a case-sensitive string compare of the given 16-bit string against
308 // the given 8-bit ASCII string (typically a constant). The behavior is
312 // Indicates case sensitivity of comparisons. Only ASCII case insensitivity
313 // is supported. Full Unicode case-insensitive conversions would need to go in
316 // If you need to do Unicode-aware case-insensitive StartsWith/EndsWith, it's
319 // the results to a case-sensitive comparison.
321 SENSITIVE, enumerator
369 // '4' -> 4
370 // 'a' -> 10
371 // 'B' -> 11
378 // Return a byte string in human-readable format with a unit suffix. Not
415 // sets the size of |str| to |length_with_null - 1| characters, and returns a
418 // the caller wants the data to be managed by a string-like object. It is
423 // would have size 0, and trying to access &((*str)[0]) in that case can result
426 // Internally, this takes linear time because the resize() call 0-fills the
428 // (|length_with_null - 1| * sizeof(string_type::value_type)) bytes. Ideally we
446 // Replace $1-$2-$3..$9 in the format string with values from |subst|.
448 // number less one. Eg $$->$, $$$->$$, etc. The offsets parameter here can be
460 // Single-string shortcut for ReplaceStringHolders. |offset| may be NULL.