Home | History | Annotate | Download | only in internal

Lines Matching defs:String

34 // This header file declares the String class and functions used internally by
45 // string.h is not guaranteed to provide strcpy on C++ Builder.
49 #include <string.h>
50 #include <string>
57 // String - an abstract class holding static string utilities.
58 class GTEST_API_ String {
62 // Clones a 0-terminated C string, allocating memory using new. The
64 // delete[]. Returns the cloned string, or NULL if the input is
67 // This is different from strdup() in string.h, which allocates
76 // Creates a UTF-16 wide string from the given ANSI string, allocating
78 // value using delete[]. Returns the wide string, or NULL if the
81 // The wide string is created using the ANSI codepage (CP_ACP) to
86 // Creates an ANSI string from the given wide string, allocating
88 // value using delete[]. Returns the ANSI string, or NULL if the
91 // The returned string is created using the ANSI codepage (CP_ACP) to
100 // NULL C string is considered different to any non-NULL C string,
101 // including the empty string.
104 // Converts a wide C string to a String using the UTF-8 encoding.
106 // the conversion, "(failed to convert from wide string)" is
108 static std::string ShowWideCString(const wchar_t* wide_c_str);
114 // NULL C string is considered different to any non-NULL C string,
115 // including the empty string.
122 // A NULL C string is considered different to any non-NULL C string,
123 // including the empty string.
131 // A NULL C string is considered different to any non-NULL wide C string,
132 // including the empty string.
142 // Returns true iff the given string ends with the given suffix, ignoring
143 // case. Any string is considered to end with an empty suffix.
145 const std::string& str, const std::string& suffix);
148 static std::string FormatIntWidth2(int value); // "%02d" for width == 2
151 static std::string FormatHexInt(int value);
154 static std::string FormatByte(unsigned char value);
157 String(); // Not meant to be instantiated.
158 }; // class String
160 // Gets the content of the stringstream's buffer as an std::string. Each '\0'
162 GTEST_API_ std::string StringStreamToString(::std::stringstream* stream);