Home
last modified time | relevance | path

Searched refs:StringType (Results 1 – 25 of 65) sorted by relevance

123

/third_party/gn/src/base/files/
Dfile_path.cc31 using StringType = FilePath::StringType; typedef
56 return StringType::npos; in FindDriveLetter()
64 if (a_letter_pos == StringType::npos || b_letter_pos == StringType::npos) in EqualDriveLetterCaseInsensitive()
80 StringType::size_type letter = FindDriveLetter(path); in IsPathAbsolute()
81 if (letter != StringType::npos) { in IsPathAbsolute()
95 bool AreAllSeparators(const StringType& input) { in AreAllSeparators()
96 for (StringType::const_iterator it = input.begin(); it != input.end(); ++it) { in AreAllSeparators()
107 StringType::size_type FinalExtensionSeparatorPosition(const StringType& path) { in FinalExtensionSeparatorPosition()
110 return StringType::npos; in FinalExtensionSeparatorPosition()
119 StringType::size_type ExtensionSeparatorPosition(const StringType& path) { in ExtensionSeparatorPosition()
[all …]
Dfile_path.h147 typedef std::u16string StringType; typedef
152 typedef std::string StringType;
155 using CharType = StringType::value_type;
196 const StringType& value() const { return path_; } in value()
215 void GetComponents(std::vector<FilePath::StringType>* components) const;
258 [[nodiscard]] StringType Extension() const;
267 [[nodiscard]] StringType FinalExtension() const;
367 StringType path_;
386 return hash<base::FilePath::StringType>()(f.value());
Dfile_enumerator_win.cc20 const FilePath::StringType& pattern) { in BuildSearchFilter()
70 FilePath::StringType(), in FileEnumerator()
76 const FilePath::StringType& pattern) in FileEnumerator()
86 const FilePath::StringType& pattern, in FileEnumerator()
Dfile_util_posix.cc297 *target_path = FilePath(FilePath::StringType(buf, count)); in ReadSymbolicLink()
333 const FilePath::StringType& executable) { in ExecutableExistsInPath()
380 const FilePath::StringType& name_tmpl, in CreateTemporaryDirInDirImpl()
382 DCHECK(name_tmpl.find("XXXXXX") != FilePath::StringType::npos) in CreateTemporaryDirInDirImpl()
414 const FilePath::StringType& prefix, in CreateTemporaryDirInDir()
416 FilePath::StringType mkdtemp_template = prefix; in CreateTemporaryDirInDir()
421 bool CreateNewTempDirectory(const FilePath::StringType& prefix, in CreateNewTempDirectory()
609 std::vector<FilePath::StringType> base_components; in VerifyPathControlledByUser()
610 std::vector<FilePath::StringType> path_components; in VerifyPathControlledByUser()
615 std::vector<FilePath::StringType>::const_iterator ib, ip; in VerifyPathControlledByUser()
Dfile_enumerator.h117 const FilePath::StringType& pattern);
121 const FilePath::StringType& pattern,
158 FilePath::StringType pattern_;
Dfile_util.h166 const FilePath::StringType& executable);
180 bool CreateNewTempDirectory(const FilePath::StringType& prefix,
187 const FilePath::StringType& prefix,
277 const FilePath::StringType& suffix);
Dfile_enumerator_posix.cc64 FilePath::StringType(), in FileEnumerator()
70 const FilePath::StringType& pattern) in FileEnumerator()
80 const FilePath::StringType& pattern, in FileEnumerator()
/third_party/gn/src/base/
Dcommand_line.h34 using StringType = std::u16string;
36 using StringType = std::string;
39 using CharType = StringType::value_type;
40 using StringVector = std::vector<StringType>;
41 using SwitchMap = std::map<std::string, StringType, std::less<>>;
112 StringType GetCommandLineString() const { in GetCommandLineString()
124 StringType GetCommandLineStringWithPlaceholders() const { in GetCommandLineStringWithPlaceholders()
132 StringType GetArgumentsString() const { in GetArgumentsString()
143 StringType GetArgumentsStringWithPlaceholders() const { in GetArgumentsStringWithPlaceholders()
175 StringType GetSwitchValueNative(std::string_view switch_string) const;
[all …]
Dcommand_line.cc49 size_t GetSwitchPrefixLength(const CommandLine::StringType& string) { in GetSwitchPrefixLength()
51 CommandLine::StringType prefix(kSwitchPrefixes[i]); in GetSwitchPrefixLength()
60 bool IsSwitch(const CommandLine::StringType& string, in IsSwitch()
61 CommandLine::StringType* switch_string, in IsSwitch()
62 CommandLine::StringType* switch_value) { in IsSwitch()
71 if (equals_position != CommandLine::StringType::npos) in IsSwitch()
83 CommandLine::StringType arg = argv[i]; in AppendSwitchesAndArguments()
90 CommandLine::StringType switch_string; in AppendSwitchesAndArguments()
91 CommandLine::StringType switch_value; in AppendSwitchesAndArguments()
297 StringType value = GetSwitchValueNative(switch_string); in GetSwitchValueASCII()
[all …]
/third_party/gn/src/base/strings/
Dstring_util.cc90 template <typename StringType>
91 StringType ToLowerASCIIImpl( in ToLowerASCIIImpl()
92 std::basic_string_view<typename StringType::value_type> str) { in ToLowerASCIIImpl()
93 StringType ret; in ToLowerASCIIImpl()
100 template <typename StringType>
101 StringType ToUpperASCIIImpl( in ToUpperASCIIImpl()
102 std::basic_string_view<typename StringType::value_type> str) { in ToUpperASCIIImpl()
103 StringType ret; in ToUpperASCIIImpl()
128 template <class StringType>
130 std::basic_string_view<typename StringType::value_type> a, in CompareCaseInsensitiveASCIIT()
[all …]
Dstringprintf.cc37 template <class StringType>
38 static void StringAppendVT(StringType* dst, in StringAppendVT()
39 const typename StringType::value_type* format, in StringAppendVT()
44 typename StringType::value_type stack_buf[1024]; in StringAppendVT()
89 std::vector<typename StringType::value_type> mem_buf(mem_length); in StringAppendVT()
/third_party/json/include/nlohmann/detail/output/
Doutput_adapters.hpp78 template<typename CharType, typename StringType = std::basic_string<CharType>>
82 explicit output_string_adapter(StringType& s) noexcept in output_string_adapter()
98 StringType& str;
101 template<typename CharType, typename StringType = std::basic_string<CharType>>
111 output_adapter(StringType& s) in output_adapter()
112 : oa(std::make_shared<output_string_adapter<CharType, StringType>>(s)) {} in output_adapter()
/third_party/boost/boost/archive/impl/
Dbasic_xml_grammar.hpp76 typedef typename std::basic_string<CharType> StringType; typedef in boost::archive::basic_xml_grammar
147 StringType object_name;
148 StringType contents;
156 StringType class_name;
164 bool parse_string(IStream & is, StringType & s) /*const*/;
/third_party/boost/libs/serialization/src/
Dbasic_xml_grammar.ipp232 bool basic_xml_grammar<CharType>::parse_string(IStream & is, StringType & s){
289 StringType,
297 str_p(L"&#") >> uint_p [xml::append_char<StringType>(rv.contents)] >> L';'
300 str_p(L"&#x") >> hex_p [xml::append_char<StringType>(rv.contents)] >> L';'
304 AmpRef = str_p(L"&amp;")[xml::append_lit<StringType, L'&'>(rv.contents)];
305 LTRef = str_p(L"&lt;")[xml::append_lit<StringType, L'<'>(rv.contents)];
306 GTRef = str_p(L"&gt;")[xml::append_lit<StringType, L'>'>(rv.contents)];
307 AposRef = str_p(L"&apos;")[xml::append_lit<StringType, L'\''>(rv.contents)];
308 QuoteRef = str_p(L"&quot;")[xml::append_lit<StringType, L'"'>(rv.contents)];
345 AmpName = str_p(L"&amp;")[xml::append_lit<StringType, L'&'>(rv.class_name)];
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dnumbers_benchmark.cc186 template <typename StringType>
187 StringType GetStringAs(const std::string& s) { in GetStringAs()
188 return static_cast<StringType>(s); in GetStringAs()
195 template <typename StringType>
196 std::vector<StringType> GetStringsAs(const std::vector<std::string>& strings) { in GetStringsAs()
197 std::vector<StringType> result; in GetStringsAs()
200 result.push_back(GetStringAs<StringType>(s)); in GetStringsAs()
Dstr_split.h508 template <typename Delimiter, typename StringType,
509 EnableSplitIfString<StringType> = 0>
513 StrSplit(StringType&& text, Delimiter d) {
533 template <typename Delimiter, typename Predicate, typename StringType,
534 EnableSplitIfString<StringType> = 0>
538 StrSplit(StringType&& text, Delimiter d, Predicate p) {
Descaping_test.cc561 template <typename StringType>
565 StringType encoded("this junk should be ignored"); in TestEscapeAndUnescape()
570 StringType decoded("this junk should be ignored"); in TestEscapeAndUnescape()
574 StringType websafe(tc.cyphertext); in TestEscapeAndUnescape()
597 StringType buffer; in TestEscapeAndUnescape()
608 StringType buf; in TestEscapeAndUnescape()
/third_party/abseil-cpp/absl/strings/
Dnumbers_benchmark.cc186 template <typename StringType>
187 StringType GetStringAs(const std::string& s) { in GetStringAs()
188 return static_cast<StringType>(s); in GetStringAs()
195 template <typename StringType>
196 std::vector<StringType> GetStringsAs(const std::vector<std::string>& strings) { in GetStringsAs()
197 std::vector<StringType> result; in GetStringsAs()
200 result.push_back(GetStringAs<StringType>(s)); in GetStringsAs()
Descaping_test.cc561 template <typename StringType>
565 StringType encoded("this junk should be ignored"); in TestEscapeAndUnescape()
570 StringType decoded("this junk should be ignored"); in TestEscapeAndUnescape()
574 StringType websafe(tc.cyphertext); in TestEscapeAndUnescape()
597 StringType buffer; in TestEscapeAndUnescape()
608 StringType buf; in TestEscapeAndUnescape()
/third_party/abseil-cpp/absl/strings/internal/
Dostringstream_benchmark.cc24 enum StringType { enum
30 template <StringType kOutput>
67 template <StringType kOutput>
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dostringstream_benchmark.cc24 enum StringType { enum
30 template <StringType kOutput>
67 template <StringType kOutput>
/third_party/boost/libs/container_hash/test/
Dhash_string_test.cpp133 template <typename StringType>
134 void generic_string_tests(StringType*) in generic_string_tests() argument
142 StringType strings[] = { in generic_string_tests()
152 std::size_t const strings_length = sizeof(strings) / sizeof(StringType); in generic_string_tests()
153 boost::hash<StringType> hash; in generic_string_tests()
/third_party/boost/boost/process/detail/posix/
Dexe.hpp20 template<class StringType, class Executor>
21 inline void apply_exe(const StringType & exe, Executor & e) in apply_exe()
/third_party/cef/patch/patches/
Dbase_command_line_1872.patch12 StringType combined_switch_string(UTF8ToWide(switch_key));
15 StringType combined_switch_string(switch_key);
/third_party/gn/src/gn/
Dfilesystem_utils.cc118 std::vector<base::FilePath::StringType> GetPathComponents( in GetPathComponents()
120 std::vector<base::FilePath::StringType> result; in GetPathComponents()
148 bool FilesystemStringsEqual(const base::FilePath::StringType& a, in FilesystemStringsEqual()
149 const base::FilePath::StringType& b) { in FilesystemStringsEqual()
216 std::string FilePathToUTF8(const base::FilePath::StringType& str) { in FilePathToUTF8()
465 std::vector<base::FilePath::StringType> base_components; in MakeAbsoluteFilePathRelativeIfPossible()
466 std::vector<base::FilePath::StringType> target_components; in MakeAbsoluteFilePathRelativeIfPossible()
485 std::vector<base::FilePath::StringType> relative_components; in MakeAbsoluteFilePathRelativeIfPossible()
502 base::FilePath::StringType separator(&base::FilePath::kSeparators[0], 1); in MakeAbsoluteFilePathRelativeIfPossible()
869 std::vector<base::FilePath::StringType> source_comp = in SourceDirForPath()
[all …]

123