Lines Matching defs:string

75 //   GTEST_HAS_GLOBAL_STRING  - Define it to 1/0 to indicate that ::string
77 // ::string, which is different to std::string).
78 // GTEST_HAS_GLOBAL_WSTRING - Define it to 1/0 to indicate that ::string
237 // string.
240 // string.
257 // StringFromGTestEnv() - parses a string environment variable.
263 #include <string.h>
277 #include <string> // NOLINT
500 // The user told us that ::std::string isn't available.
501 # error "Google Test cannot be used where ::std::string isn't available."
505 // The user didn't tell us whether ::string is available, so we need
1095 typedef ::string string;
1097 typedef ::std::string string;
1162 // Constructs an RE from a string.
1163 RE(const ::std::string& regex) { Init(regex.c_str()); } // NOLINT
1167 RE(const ::string& regex) { Init(regex.c_str()); } // NOLINT
1174 // Returns the string representation of the regex.
1184 static bool FullMatch(const ::std::string& str, const RE& re) {
1187 static bool PartialMatch(const ::std::string& str, const RE& re) {
1193 static bool FullMatch(const ::string& str, const RE& re) {
1196 static bool PartialMatch(const ::string& str, const RE& re) {
1208 // We use a const char* instead of an std::string, as Google Test used to be
1209 // used where std::string is not available. TODO(wan@google.com): change to
1210 // std::string.
1230 GTEST_API_ ::std::string FormatFileLocation(const char* file, int line);
1235 GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(const char* file,
1410 // GetCapturedStdout - stops capturing stdout and returns the captured string.
1412 // GetCapturedStderr - stops capturing stderr and returns the captured string.
1415 GTEST_API_ std::string GetCapturedStdout();
1417 GTEST_API_ std::string GetCapturedStderr();
1422 GTEST_API_ std::string TempDir();
1427 // Reads the entire content of a file as a string.
1428 GTEST_API_ std::string ReadEntireFile(FILE* file);
1431 GTEST_API_ const ::std::vector<testing::internal::string>& GetArgvs();
1435 const ::std::vector<testing::internal::string>& GetInjectableArgvs();
1436 void SetInjectableArgvs(const ::std::vector<testing::internal::string>*
2284 inline std::string StripTrailingSpaces(std::string str) {
2285 std::string::iterator it = str.end();
2394 // empty string rather than unset (NULL). Handle that case.
2519 GTEST_API_ extern ::std::string GTEST_FLAG(name)
2527 GTEST_API_ ::std::string GTEST_FLAG(name) = (default_val)
2545 // Parses a bool/Int32/string from the environment variable
2549 std::string StringFromGTestEnv(const char* flag, const char* default_val);