Home
last modified time | relevance | path

Searched refs:StringType (Results 1 – 25 of 57) 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_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_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_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/json/include/nlohmann/detail/
Dstring_escape.hpp30 template<typename StringType>
31 inline void replace_substring(StringType& s, const StringType& f, in replace_substring()
32 const StringType& t) in replace_substring()
36 pos != StringType::npos; // make sure f was found in replace_substring()
49 template<typename StringType>
50 inline StringType escape(StringType s) in escape()
52 replace_substring(s, StringType{"~"}, StringType{"~0"}); in escape()
53 replace_substring(s, StringType{"/"}, StringType{"~1"}); in escape()
64 template<typename StringType>
65 static void unescape(StringType& s) in unescape()
[all …]
Dstring_concat.hpp30 template<typename StringType, typename... Args>
31 inline std::size_t concat_length(const StringType& str, Args&& ... rest);
46 template<typename StringType, typename... Args>
47 inline std::size_t concat_length(const StringType& str, Args&& ... rest) in concat_length()
56 template<typename StringType, typename Arg>
57 using string_can_append = decltype(std::declval<StringType&>().append(std::declval < Arg && > ()));
59 template<typename StringType, typename Arg>
60 using detect_string_can_append = is_detected<string_can_append, StringType, Arg>;
62 template<typename StringType, typename Arg>
63 using string_can_append_op = decltype(std::declval<StringType&>() += std::declval < Arg && > ());
[all …]
Djson_pointer.hpp53 using type = StringType;
883 template<typename RefStringTypeLhs, typename StringType>
886 const StringType& rhs);
890 template<typename RefStringTypeRhs, typename StringType>
892 friend bool operator==(const StringType& lhs,
904 template<typename RefStringTypeLhs, typename StringType>
907 const StringType& rhs);
911 template<typename RefStringTypeRhs, typename StringType>
913 friend bool operator!=(const StringType& lhs,
938 typename StringType = typename json_pointer<RefStringTypeLhs>::string_t>
[all …]
/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.hpp98 template<typename CharType, typename StringType = std::basic_string<CharType>>
102 explicit output_string_adapter(StringType& s) noexcept in output_string_adapter()
118 StringType& str;
121 template<typename CharType, typename StringType = std::basic_string<CharType>>
134 output_adapter(StringType& s) in output_adapter()
135 : oa(std::make_shared<output_string_adapter<CharType, StringType>>(s)) {} in output_adapter()
/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/json/docs/mkdocs/docs/api/json_pointer/
Doperator_ne.md10 template<typename RefStringTypeLhs, typename StringType>
13 const StringType& rhs); // (2)
15 template<typename RefStringTypeRhs, typename StringType>
17 const StringType& lhs,
31 `StringType`
Doperator_eq.md10 template<typename RefStringTypeLhs, typename StringType>
13 const StringType& rhs); // (2)
15 template<typename RefStringTypeRhs, typename StringType>
17 const StringType& lhs,
40 `StringType`
/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/json/docs/mkdocs/docs/api/basic_json/
Dobject_t.md4 using object_t = ObjectType<StringType,
7 AllocatorType<std::pair<const StringType, basic_json>>>;
23 `StringType`
24 …the keys or names (e.g., `std::string`). The comparison function `std::less<StringType>` is used to
34 With the default values for `ObjectType` (`std::map`), `StringType` (`std::string`), and `Allocator…
Dstring_t.md4 using string_t = StringType;
17 `StringType`
25 With the default values for `StringType` (`std::string`), the default value for `string_t` is `#!cp…
/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 …]
/third_party/node/deps/npm/node_modules/nopt/lib/
Dnopt-lib.js64 const StringType = typeDefs.String?.type
73 if (StringType) {
74 typeDefault.push(StringType)
251 const StringType = typeDefs.String?.type
363 } else if (!la.match(/^-[^-]/) && hasTypeDef(argType, StringType)) {
379 if (isTypeDef(argType, StringType)) {

123