• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/llvmCore-3425.0.34/utils/unittest/googletest/include/gtest/internal/

Lines Matching defs:string

45 // string.h is not guaranteed to provide strcpy on C++ Builder.
49 #include <string.h>
52 #include <string>
57 // String - a UTF-8 string class.
59 // For historic reasons, we don't use std::string.
61 // TODO(wan@google.com): replace this class with std::string or
64 // Note that String can represent both NULL and the empty string,
65 // while std::string cannot represent NULL.
67 // NULL and the empty string are considered different. NULL is less
68 // than anything (including the empty string) except itself.
72 // string class here.
75 // std::string on platforms where it cannot be used, we define a copy
89 // This is useful for printing a C string in the syntax of a literal.
94 // Clones a 0-terminated C string, allocating memory using new. The
96 // delete[]. Returns the cloned string, or NULL if the input is
99 // This is different from strdup() in string.h, which allocates
108 // Creates a UTF-16 wide string from the given ANSI string, allocating
110 // value using delete[]. Returns the wide string, or NULL if the
113 // The wide string is created using the ANSI codepage (CP_ACP) to
118 // Creates an ANSI string from the given wide string, allocating
120 // value using delete[]. Returns the ANSI string, or NULL if the
123 // The returned string is created using the ANSI codepage (CP_ACP) to
132 // NULL C string is considered different to any non-NULL C string,
133 // including the empty string.
136 // Converts a wide C string to a String using the UTF-8 encoding.
138 // the conversion, "(failed to convert from wide string)" is
143 // the converted string in double quotes.
150 // NULL C string is considered different to any non-NULL C string,
151 // including the empty string.
158 // A NULL C string is considered different to any non-NULL C string,
159 // including the empty string.
167 // A NULL C string is considered different to any non-NULL wide C string,
168 // including the empty string.
179 // spec string as for printf.
191 // The default c'tor constructs a NULL string.
194 // Constructs a String by cloning a 0-terminated C string.
205 // buffer. E.g. String("hello", 3) creates the string "hel",
212 // The copy c'tor creates a new copy of the string. The two
220 // Allows a String to be implicitly converted to an ::std::string or
221 // ::string, and vice versa. Converting a String containing a NULL
222 // pointer to ::std::string or ::string is undefined behavior.
223 // Converting a ::std::string or ::string containing an embedded NUL
226 String(const ::std::string& str) {
230 operator ::std::string() const { return ::std::string(c_str(), length()); }
233 String(const ::string& str) {
237 operator ::string() const { return ::string(c_str(), length()); }
240 // Returns true iff this is an empty string (i.e. "").
248 // Returns true iff this String equals the given C string. A NULL
249 // string and a non-NULL string are considered not equal.
253 // NULL string is considered less than "".
256 // Returns true iff this String doesn't equal the given C string. A NULL
257 // string and a non-NULL string are considered not equal.
268 // Returns the length of the encapsulated string, or 0 if the
269 // string is NULL.
272 // Gets the 0-terminated C string this String object represents.
273 // The String object still owns the string. Therefore the caller
277 // Assigns a C string to this object. Self-assignment works.
300 // ConstructNonNull(NULL, 0) results in an empty string ("").
337 // converted to "(null)". When the input value is a ::string,
338 // ::std::string, ::wstring, or ::std::wstring object, each NUL