Lines Matching +full:safer +full:- +full:buffer
29 // string_utils-inl.h: Safer string manipulation on Windows, supporting
30 // pre-MSVC8 environments.
42 // but "I64" can be used to print 64-bit types. Don't use "I64" where "ll"
54 // behaves as a standards-confirming swprintf should, so force the use of
71 // Roughly equivalent to MSVC8's wcscpy_s, except pre-MSVC8, this does
73 // buffer is always 0-terminated.
78 // be passed directly, and pre-MSVC8, this will not fail if source or count
79 // are longer than destination_size. The destination buffer is always
80 // 0-terminated.
84 // Performs multi-byte to wide character conversion on C++ strings, using
85 // mbstowcs_s (MSVC8) or mbstowcs (pre-MSVC8). Returns false on failure,
96 // Disallow instantiation and other object-based operations.
110 // Pre-MSVC 2005/8 doesn't have wcscpy_s. Simulate it with wcsncpy. in safe_wcscpy()
111 // wcsncpy doesn't 0-terminate the destination buffer if the source string in safe_wcscpy()
112 // is longer than size. Ensure that the destination is 0-terminated. in safe_wcscpy()
115 destination[destination_size - 1] = 0; in safe_wcscpy()
127 // Pre-MSVC 2005/8 doesn't have wcsncpy_s. Simulate it with wcsncpy. in safe_wcsncpy()
128 // wcsncpy doesn't 0-terminate the destination buffer if the source string in safe_wcsncpy()
129 // is longer than size. Ensure that the destination is 0-terminated. in safe_wcsncpy()
135 destination[count - 1] = 0; in safe_wcsncpy()