/third_party/boost/libs/algorithm/string/test/ |
D | find_test.cpp | 30 string str1("123abcxXxabcXxXabc321"); in find_test() local 34 vector<int> vec1( str1.begin(), str1.end() ); in find_test() 51 nc_result=find_first( str1, string("abc") ); in find_test() 53 ( (nc_result.begin()-str1.begin()) == 3) && in find_test() 54 ( (nc_result.end()-str1.begin()) == 6) ); in find_test() 56 cv_result=find_first( const_cast<const string&>(str1), str2 ); in find_test() 58 ( (cv_result.begin()-str1.begin()) == 3) && in find_test() 59 ( (cv_result.end()-str1.begin()) == 6) ); in find_test() 61 cv_result=ifind_first( const_cast<const string&>(str1), "xXX" ); in find_test() 63 ( (cv_result.begin()-str1.begin()) == 6) && in find_test() [all …]
|
D | regex_test.cpp | 32 string str1("123a1cxxxa23cXXXa456c321"); in find_test() local 35 vector<int> vec1( str1.begin(), str1.end() ); in find_test() 48 nc_result=find_regex( str1, rx ); in find_test() 50 ( (nc_result.begin()-str1.begin()) == 3) && in find_test() 51 ( (nc_result.end()-str1.begin()) == 6) ); in find_test() 53 cv_result=find_regex( str1, rx ); in find_test() 55 ( (cv_result.begin()-str1.begin()) == 3) && in find_test() 56 ( (cv_result.end()-str1.begin()) == 6) ); in find_test() 64 ( (nc_result.begin()-str1.begin()) == 3) && in find_test() 65 ( (nc_result.end()-str1.begin()) == 6) ); in find_test() [all …]
|
D | trim_test.cpp | 26 string str1(" 1x x x x1 "); in trim_test() local 33 BOOST_CHECK( trim_left_copy( str1 )=="1x x x x1 " ) ; in trim_test() 34 BOOST_CHECK( trim_right_copy( str1 )==" 1x x x x1" ) ; in trim_test() 35 BOOST_CHECK( trim_copy( str1 )=="1x x x x1" ) ; in trim_test() 49 trim_left_copy_if( std::back_inserter(str), str1, is_space() ); in trim_test() 53 trim_right_copy_if( std::back_inserter(str), str1, is_space() ); in trim_test() 57 trim_copy_if( std::back_inserter(str), str1, is_space() ); in trim_test() 83 trim_left( str1 ); in trim_test() 84 BOOST_CHECK( str1=="1x x x x1 " ); in trim_test() 85 trim_right( str1 ); in trim_test() [all …]
|
D | replace_test.cpp | 62 string str1(Input);\ 65 BOOST_CHECK( Algo##_copy( str1, Params )==Output );\ 70 Algo##_copy( back_inserter(strout), str1, Params );\ 74 vector<char> vec1( str1.begin(), str1.end() );\ 75 list<char> list1( str1.begin(), str1.end() );\ 78 Algo( str1, Params ); \ 79 BOOST_CHECK( equals( str1, Output ) ); \ 212 string str1("1abc3abc2"); in replace_range_test() local 215 str1, in replace_range_test() 216 make_iterator_range(str1.begin()+1, str1.begin()+4), in replace_range_test() [all …]
|
D | predicate_test.cpp | 28 string str1("123xxx321"); in predicate_test() local 33 vector<int> vec1( str1.begin(), str1.end() ); in predicate_test() 36 BOOST_CHECK( starts_with( str1, string("123") ) ); in predicate_test() 37 BOOST_CHECK( !starts_with( str1, string("1234") ) ); in predicate_test() 42 BOOST_CHECK( ends_with( str1, string("321") ) ); in predicate_test() 43 BOOST_CHECK( !ends_with( str1, string("123") ) ); in predicate_test() 48 BOOST_CHECK( contains( str1, string("xxx") ) ); in predicate_test() 49 BOOST_CHECK( !contains( str1, string("yyy") ) ); in predicate_test() 55 BOOST_CHECK( !equals( str1, string("yyy") ) ); in predicate_test() 72 BOOST_CHECK( equals( vec1, str1 ) ); in predicate_test()
|
/third_party/cef/tests/ceftests/ |
D | string_unittest.cc | 16 CefStringUTF8 str1("Test String"); in TEST() local 17 EXPECT_EQ(str1.length(), (size_t)11); in TEST() 18 EXPECT_FALSE(str1.empty()); in TEST() 19 EXPECT_TRUE(str1.IsOwner()); in TEST() 23 EXPECT_EQ(str1, str2); in TEST() 24 EXPECT_LE(str1, str2); in TEST() 25 EXPECT_GE(str1, str2); in TEST() 28 EXPECT_LT(str1, str2); in TEST() 29 EXPECT_GT(str2, str1); in TEST() 34 EXPECT_LT(str2, str1); in TEST() [all …]
|
/third_party/boost/libs/algorithm/string/example/ |
D | replace_example.cpp | 44 string str1("abc___cde___efg"); in main() local 48 erase_range_copy( str1, make_iterator_range(str1.begin()+6, str1.begin()+9) ) << endl; in main() 53 str1, make_iterator_range(str1.begin()+6, str1.begin()+9), "+++" ) << endl; in main() 58 replace_first_copy( ostream_iterator<char>(cout), str1, "cde", "XYZ" ); in main() 63 replace_all_copy( str1, "___", "---" ) << endl; in main() 67 erase_all_copy( str1, "___" ) << endl; in main() 71 replace_nth( str1, "_", 4, "+" ); in main() 72 replace_nth( str1, "_", 2, "+" ); in main() 74 cout << "str1 with third and 5th occurrence of _ replace: " << str1 << endl; in main()
|
D | conv_example.cpp | 23 string str1("AbCdEfG"); in main() local 24 vector<char> vec1( str1.begin(), str1.end() ); in main() 32 cout << "upper-cased copy of str1: " << to_upper_copy( str1 ) << endl; in main() 35 to_lower( str1 ); in main() 36 cout << "lower-cased str1: " << str1 << endl; in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/string/ |
D | wcscmp.c | 28 wchar_t str1[] = L"test wcscmp"; in wcscmp_0100() local 30 if (wcscmp(str1, str2)) { in wcscmp_0100() 42 wchar_t str1[] = L"ABCD"; in wcscmp_0200() local 44 if (wcscmp(str1, str2) >= 0) { in wcscmp_0200() 56 wchar_t str1[] = L"ABCE"; in wcscmp_0300() local 58 if (wcscmp(str1, str2) <= 0) { in wcscmp_0300() 70 wchar_t str1[] = L"ABCD"; in wcscmp_0400() local 72 if (wcscmp(str1, str2) >= 0) { in wcscmp_0400() 75 if (wcscmp(str2, str1) <= 0) { in wcscmp_0400() 87 wchar_t str1[] = L""; in wcscmp_0500() local [all …]
|
/third_party/boost/boost/log/detail/ |
D | code_conversion.hpp | 41 BOOST_LOG_API bool code_convert_impl(const wchar_t* str1, std::size_t len, std::string& str2, std::… 43 BOOST_LOG_API bool code_convert_impl(const char* str1, std::size_t len, std::wstring& str2, std::si… 48 BOOST_LOG_API bool code_convert_impl(const char16_t* str1, std::size_t len, std::string& str2, std:… 50 BOOST_LOG_API bool code_convert_impl(const char* str1, std::size_t len, std::u16string& str2, std::… 52 BOOST_LOG_API bool code_convert_impl(const char16_t* str1, std::size_t len, std::wstring& str2, std… 56 BOOST_LOG_API bool code_convert_impl(const char32_t* str1, std::size_t len, std::string& str2, std:… 58 BOOST_LOG_API bool code_convert_impl(const char* str1, std::size_t len, std::u32string& str2, std::… 60 BOOST_LOG_API bool code_convert_impl(const char32_t* str1, std::size_t len, std::wstring& str2, std… 64 BOOST_LOG_API bool code_convert_impl(const char16_t* str1, std::size_t len, std::u32string& str2, s… 66 BOOST_LOG_API bool code_convert_impl(const char32_t* str1, std::size_t len, std::u16string& str2, s… [all …]
|
/third_party/pcre2/pcre2/src/ |
D | pcre2_string_utils.c | 102 PRIV(strcmp)(PCRE2_SPTR str1, PCRE2_SPTR str2) in PRIV() 105 while (*str1 != '\0' || *str2 != '\0') in PRIV() 107 c1 = *str1++; in PRIV() 130 PRIV(strcmp_c8)(PCRE2_SPTR str1, const char *str2) in PRIV() 133 while (*str1 != '\0' || *str2 != '\0') in PRIV() 135 c1 = *str1++; in PRIV() 157 PRIV(strncmp)(PCRE2_SPTR str1, PCRE2_SPTR str2, size_t len) in PRIV() 162 c1 = *str1++; in PRIV() 186 PRIV(strncmp_c8)(PCRE2_SPTR str1, const char *str2, size_t len) in PRIV() 191 c1 = *str1++; in PRIV() [all …]
|
/third_party/boost/libs/log/src/ |
D | code_conversion.cpp | 142 BOOST_LOG_API bool code_convert_impl(const wchar_t* str1, std::size_t len, std::string& str2, std::… in code_convert_impl() argument 144 …return code_convert(str1, str1 + len, str2, max_size, std::use_facet< std::codecvt< wchar_t, char,… in code_convert_impl() 148 BOOST_LOG_API bool code_convert_impl(const char* str1, std::size_t len, std::wstring& str2, std::si… in code_convert_impl() argument 150 …return code_convert(str1, str1 + len, str2, max_size, std::use_facet< std::codecvt< wchar_t, char,… in code_convert_impl() 158 BOOST_LOG_API bool code_convert_impl(const char16_t* str1, std::size_t len, std::string& str2, std:… in code_convert_impl() argument 160 …return code_convert(str1, str1 + len, str2, max_size, std::use_facet< std::codecvt< char16_t, char… in code_convert_impl() 164 BOOST_LOG_API bool code_convert_impl(const char* str1, std::size_t len, std::u16string& str2, std::… in code_convert_impl() argument 166 …return code_convert(str1, str1 + len, str2, max_size, std::use_facet< std::codecvt< char16_t, char… in code_convert_impl() 170 BOOST_LOG_API bool code_convert_impl(const char16_t* str1, std::size_t len, std::wstring& str2, std… in code_convert_impl() argument 173 …code_convert(str1, str1 + len, temp_str, temp_str.max_size(), std::use_facet< std::codecvt< char16… in code_convert_impl() [all …]
|
/third_party/boost/libs/compute/test/ |
D | test_string.cpp | 38 boost::compute::string str1 = "compute"; in BOOST_AUTO_TEST_CASE() local 42 str1.swap(str2); in BOOST_AUTO_TEST_CASE() 44 CHECK_STRING_EQUAL(str1, "boost"); in BOOST_AUTO_TEST_CASE() 46 str1.clear(); in BOOST_AUTO_TEST_CASE() 47 str1.swap(str2); in BOOST_AUTO_TEST_CASE() 48 CHECK_STRING_EQUAL(str1, "compute"); in BOOST_AUTO_TEST_CASE() 50 str2.swap(str1); in BOOST_AUTO_TEST_CASE() 51 CHECK_STRING_EQUAL(str1, ""); in BOOST_AUTO_TEST_CASE() 53 str1.swap(str1); in BOOST_AUTO_TEST_CASE() 54 CHECK_STRING_EQUAL(str1, ""); in BOOST_AUTO_TEST_CASE()
|
/third_party/glib/glib/pcre/ |
D | pcre_string_utils.c | 66 PRIV(strcmp_uc_uc)(const pcre_uchar *str1, const pcre_uchar *str2) in PRIV() 71 while (*str1 != '\0' || *str2 != '\0') in PRIV() 73 c1 = *str1++; in PRIV() 83 PRIV(strcmp_uc_c8)(const pcre_uchar *str1, const char *str2) in PRIV() 89 while (*str1 != '\0' || *ustr2 != '\0') in PRIV() 91 c1 = *str1++; in PRIV() 112 PRIV(strncmp_uc_uc)(const pcre_uchar *str1, const pcre_uchar *str2, unsigned int num) in PRIV() 119 c1 = *str1++; in PRIV() 129 PRIV(strncmp_uc_c8)(const pcre_uchar *str1, const char *str2, unsigned int num) in PRIV() 137 c1 = *str1++; in PRIV()
|
/third_party/jerryscript/tests/jerry/ |
D | strict.js | 85 var str1 = "'\\" + "0'"; variable 87 eval (str1); 89 assert (eval (str1) === eval (str2)); 97 var str1 = "'\\" + "0" + "\\" + "0" + "\\" + "0'"; 99 eval (str1); 101 assert (eval (str1) === eval (str2)); 109 var str1 = "'foo\\" + "0" + "bar'"; 111 eval (str1); 113 assert (eval (str1) === eval (str2));
|
/third_party/boost/libs/utility/test/ |
D | string_ref_test2.cpp | 250 std::string str1; in to_string() local 253 str1.assign ( arg ); in to_string() 257 BOOST_TEST ( str1 == str2 ); in to_string() 261 BOOST_TEST ( str1 == str3 ); in to_string() 267 std::string str1; in compare() local 268 std::string str2 = str1; in compare() 270 str1.assign ( arg ); in compare() 273 BOOST_TEST ( sr1 == str1); // compare string and string_ref in compare() 274 BOOST_TEST ( str1 == sr1 ); // compare string_ref and string in compare() 279 (*str1.rbegin())++; in compare() [all …]
|
D | string_view_test2.cpp | 334 std::string str1; in to_string() local 337 str1.assign ( arg ); in to_string() 341 BOOST_TEST ( str1 == str2 ); in to_string() 344 BOOST_TEST ( std::strcmp(str1.c_str(), str3.c_str()) == 0 ); in to_string() 348 BOOST_TEST ( str1 == str4 ); in to_string() 354 std::string str1; in compare() local 355 std::string str2 = str1; in compare() 357 str1.assign ( arg ); in compare() 360 BOOST_TEST ( sr1 == str1); // compare string and string_view in compare() 361 BOOST_TEST ( str1 == sr1 ); // compare string_view and string in compare() [all …]
|
/third_party/libxml2/ |
D | xmlstring.c | 133 xmlStrcmp(const xmlChar *str1, const xmlChar *str2) { in xmlStrcmp() argument 134 if (str1 == str2) return(0); in xmlStrcmp() 135 if (str1 == NULL) return(-1); in xmlStrcmp() 138 return(strcmp((const char *)str1, (const char *)str2)); in xmlStrcmp() 141 int tmp = *str1++ - *str2; in xmlStrcmp() 160 xmlStrEqual(const xmlChar *str1, const xmlChar *str2) { in xmlStrEqual() argument 161 if (str1 == str2) return(1); in xmlStrEqual() 162 if (str1 == NULL) return(0); in xmlStrEqual() 165 return(strcmp((const char *)str1, (const char *)str2) == 0); in xmlStrEqual() 168 if (*str1++ != *str2) return(0); in xmlStrEqual() [all …]
|
/third_party/node/test/js-native-api/test_string/ |
D | test.js | 15 const str1 = 'hello world'; constant 16 assert.strictEqual(test_string.TestLatin1(str1), str1); 17 assert.strictEqual(test_string.TestUtf8(str1), str1); 18 assert.strictEqual(test_string.TestUtf16(str1), str1); 19 assert.strictEqual(test_string.TestLatin1Insufficient(str1), str1.slice(0, 3)); 20 assert.strictEqual(test_string.TestUtf8Insufficient(str1), str1.slice(0, 3)); 21 assert.strictEqual(test_string.TestUtf16Insufficient(str1), str1.slice(0, 3)); 22 assert.strictEqual(test_string.Utf16Length(str1), 11); 23 assert.strictEqual(test_string.Utf8Length(str1), 11);
|
/third_party/boost/libs/interprocess/test/ |
D | vectorstream_test.cpp | 68 std::string str1, str2, str3("testline:"); in vectorstream_test() local 82 my_stringstream >> str1 >> number1; in vectorstream_test() 84 if((str1 != str2) || (str1 != str3)){ in vectorstream_test() 97 std::string str1, str2, str3("testline:"); in vectorstream_test() local 112 my_vectorstream >> str1 >> number1; in vectorstream_test() 114 if((str1 != str2) || (str1 != str3)){ in vectorstream_test() 127 std::string str1, str2, str3("testline:"); in vectorstream_test() local 138 my_stringstream >> str1 >> number1; in vectorstream_test() 140 if((str1 != str2) || (str1 != str3)){ in vectorstream_test()
|
/third_party/gettext/gnulib-local/lib/libxml/ |
D | xmlstring.c | 161 xmlStrcmp(const xmlChar *str1, const xmlChar *str2) { in xmlStrcmp() argument 164 if (str1 == str2) return(0); in xmlStrcmp() 165 if (str1 == NULL) return(-1); in xmlStrcmp() 168 tmp = *str1++ - *str2; in xmlStrcmp() 186 xmlStrEqual(const xmlChar *str1, const xmlChar *str2) { in xmlStrEqual() argument 187 if (str1 == str2) return(1); in xmlStrEqual() 188 if (str1 == NULL) return(0); in xmlStrEqual() 191 if (*str1++ != *str2) return(0); in xmlStrEqual() 235 xmlStrncmp(const xmlChar *str1, const xmlChar *str2, int len) { in xmlStrncmp() argument 239 if (str1 == str2) return(0); in xmlStrncmp() [all …]
|
/third_party/cef/libcef/common/ |
D | string_types_impl.cc | 140 CEF_EXPORT int cef_string_wide_cmp(const cef_string_wide_t* str1, in cef_string_wide_cmp() argument 142 if (str1->length == 0 && str2->length == 0) in cef_string_wide_cmp() 144 int r = wcsncmp(str1->str, str2->str, std::min(str1->length, str2->length)); in cef_string_wide_cmp() 146 if (str1->length > str2->length) in cef_string_wide_cmp() 148 else if (str1->length < str2->length) in cef_string_wide_cmp() 154 CEF_EXPORT int cef_string_utf8_cmp(const cef_string_utf8_t* str1, in cef_string_utf8_cmp() argument 156 if (str1->length == 0 && str2->length == 0) in cef_string_utf8_cmp() 158 int r = strncmp(str1->str, str2->str, std::min(str1->length, str2->length)); in cef_string_utf8_cmp() 160 if (str1->length > str2->length) in cef_string_utf8_cmp() 162 else if (str1->length < str2->length) in cef_string_utf8_cmp() [all …]
|
/third_party/mesa3d/src/util/tests/hash_table/ |
D | replacement.c | 39 char *str1 = strdup("test1"); in main() local 46 assert(str1 != str2); in main() 51 _mesa_hash_table_insert(ht, str1, str1); in main() 54 entry = _mesa_hash_table_search(ht, str1); in main() 60 entry = _mesa_hash_table_search(ht, str1); in main() 64 free(str1); in main()
|
D | collision.c | 44 const char *str1 = strdup("test1"); in main() local 59 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str1, NULL); in main() 63 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main() 64 assert(entry1->key == str1); in main() 70 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main() 71 assert(entry1->key == str1); in main() 88 _mesa_hash_table_insert_pre_hashed(ht, bad_hash, str1, NULL); in main() 94 entry1 = _mesa_hash_table_search_pre_hashed(ht, bad_hash, str1); in main() 95 assert(entry1->key == str1); in main()
|
/third_party/eudev/src/scsi_id/ |
D | scsi_id.c | 170 char *str1; in get_file_options() local 220 str1 = strsep(&buf, "="); in get_file_options() 221 if (str1 && strcaseeq(str1, "VENDOR")) { in get_file_options() 222 str1 = get_value(&buf); in get_file_options() 223 if (!str1) { in get_file_options() 227 vendor_in = str1; in get_file_options() 229 str1 = strsep(&buf, "="); in get_file_options() 230 if (str1 && strcaseeq(str1, "MODEL")) { in get_file_options() 231 str1 = get_value(&buf); in get_file_options() 232 if (!str1) { in get_file_options() [all …]
|