Lines Matching full:subst
939 std::vector<string16> subst; in TEST() local
940 subst.push_back(ASCIIToUTF16("1")); in TEST()
941 subst.push_back(ASCIIToUTF16("2")); in TEST()
945 subst, in TEST()
953 subst, in TEST()
964 std::vector<string16> subst; in TEST() local
965 subst.push_back(ASCIIToUTF16("9a")); in TEST()
966 subst.push_back(ASCIIToUTF16("8b")); in TEST()
967 subst.push_back(ASCIIToUTF16("7c")); in TEST()
971 ASCIIToUTF16("$1a,$2b,$3c,$4d,$5e,$6f,$1g,$2h,$3i"), subst, nullptr); in TEST()
977 std::vector<string16> subst; in TEST() local
978 subst.push_back(ASCIIToUTF16("9a")); in TEST()
979 subst.push_back(ASCIIToUTF16("8b")); in TEST()
980 subst.push_back(ASCIIToUTF16("7c")); in TEST()
981 subst.push_back(ASCIIToUTF16("6d")); in TEST()
982 subst.push_back(ASCIIToUTF16("5e")); in TEST()
983 subst.push_back(ASCIIToUTF16("4f")); in TEST()
984 subst.push_back(ASCIIToUTF16("3g")); in TEST()
985 subst.push_back(ASCIIToUTF16("2h")); in TEST()
986 subst.push_back(ASCIIToUTF16("1i")); in TEST()
990 ASCIIToUTF16("$1a,$2b,$3c,$4d,$5e,$6f,$7g,$8h,$9i"), subst, nullptr); in TEST()
998 std::vector<string16> subst; in TEST() local
999 subst.push_back(ASCIIToUTF16("9a____")); in TEST()
1000 subst.push_back(ASCIIToUTF16("B")); in TEST()
1001 subst.push_back(ASCIIToUTF16("7c___")); in TEST()
1002 subst.push_back(ASCIIToUTF16("d")); in TEST()
1003 subst.push_back(ASCIIToUTF16("5e____")); in TEST()
1004 subst.push_back(ASCIIToUTF16("F")); in TEST()
1005 subst.push_back(ASCIIToUTF16("3g___")); in TEST()
1006 subst.push_back(ASCIIToUTF16("h")); in TEST()
1007 subst.push_back(ASCIIToUTF16("1i_____")); in TEST()
1013 EXPECT_EQ(expected, ReplaceStringPlaceholders(original, subst, nullptr)); in TEST()
1016 EXPECT_EQ(expected, ReplaceStringPlaceholders(original, subst, &offsets)); in TEST()
1018 EXPECT_EQ(offsets.size(), subst.size()); in TEST()
1021 EXPECT_EQ(expected.substr(expected_offsets[i], subst[i].length()), in TEST()
1022 subst[i]); in TEST()
1030 std::vector<string16> subst; in TEST() local
1031 subst.push_back(ASCIIToUTF16("z")); in TEST()
1032 subst.push_back(ASCIIToUTF16("y")); in TEST()
1033 subst.push_back(ASCIIToUTF16("XYZW")); in TEST()
1034 subst.push_back(ASCIIToUTF16("x")); in TEST()
1035 subst.push_back(ASCIIToUTF16("w")); in TEST()
1038 ReplaceStringPlaceholders(ASCIIToUTF16("$3_$4$2$1$5"), subst, nullptr); in TEST()
1044 std::vector<string16> subst; in TEST() local
1045 subst.push_back(ASCIIToUTF16("1a")); in TEST()
1047 ReplaceStringPlaceholders(ASCIIToUTF16(" $16 "), subst, nullptr); in TEST()
1052 std::vector<string16> subst; in TEST() local
1053 subst.push_back(ASCIIToUTF16("1a")); in TEST()
1055 ReplaceStringPlaceholders(ASCIIToUTF16("+$-+$A+$1+"), subst, nullptr); in TEST()
1060 std::vector<std::string> subst; in TEST() local
1061 subst.push_back("9a"); in TEST()
1062 subst.push_back("8b"); in TEST()
1063 subst.push_back("7c"); in TEST()
1064 subst.push_back("6d"); in TEST()
1065 subst.push_back("5e"); in TEST()
1066 subst.push_back("4f"); in TEST()
1067 subst.push_back("3g"); in TEST()
1068 subst.push_back("2h"); in TEST()
1069 subst.push_back("1i"); in TEST()
1073 "$1a,$2b,$3c,$4d,$5e,$6f,$7g,$8h,$9i", subst, nullptr); in TEST()
1079 std::vector<std::string> subst; in TEST() local
1080 subst.push_back("4"); // Referenced twice. in TEST()
1081 subst.push_back("?"); // Unreferenced. in TEST()
1082 subst.push_back("!"); // Unreferenced. in TEST()
1083 subst.push_back("16"); // Referenced once. in TEST()
1087 EXPECT_EQ(expected, ReplaceStringPlaceholders(original, subst, nullptr)); in TEST()
1089 EXPECT_EQ(expected, ReplaceStringPlaceholders(original, subst, &offsets)); in TEST()
1095 std::vector<std::string> subst; in TEST() local
1096 subst.push_back("a"); in TEST()
1097 subst.push_back("b"); in TEST()
1098 subst.push_back("c"); in TEST()
1099 EXPECT_EQ(ReplaceStringPlaceholders("$$1 $$$2 $$$$3", subst, nullptr), in TEST()