Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 160) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangle.h146 llvm::getArm64ECInsertionPointInMangledName(std::string_view MangledName);
154 SymbolNode *parse(std::string_view &MangledName);
156 TagTypeNode *parseTagUniqueName(std::string_view &MangledName);
164 SymbolNode *demangleEncodedSymbol(std::string_view &MangledName,
166 SymbolNode *demangleDeclarator(std::string_view &MangledName);
167 SymbolNode *demangleMD5Name(std::string_view &MangledName);
168 SymbolNode *demangleTypeinfoName(std::string_view &MangledName);
170 VariableSymbolNode *demangleVariableEncoding(std::string_view &MangledName,
172 FunctionSymbolNode *demangleFunctionEncoding(std::string_view &MangledName);
174 Qualifiers demanglePointerExtQualifiers(std::string_view &MangledName);
[all …]
H A DDemangle.h36 char *itaniumDemangle(std::string_view mangled_name, bool ParseParams = true);
55 char *microsoftDemangle(std::string_view mangled_name, size_t *n_read,
59 getArm64ECInsertionPointInMangledName(std::string_view MangledName);
62 char *rustDemangle(std::string_view MangledName);
65 char *dlangDemangle(std::string_view MangledName);
72 std::string demangle(std::string_view MangledName);
74 bool nonMicrosoftDemangle(std::string_view MangledName, std::string &Result,
H A DItaniumDemangle.h299 virtual std::string_view getBaseName() const { return {}; } in getBaseName()
380 const std::string_view Suffix;
383 DotSuffix(const Node *Prefix_, std::string_view Suffix_) in DotSuffix()
398 std::string_view Ext;
402 VendorExtQualType(const Node *Ty_, std::string_view Ext_, const Node *TA_) in VendorExtQualType()
406 std::string_view getExt() const { return Ext; } in getExt()
497 const std::string_view Postfix;
500 PostfixQualifiedType(const Node *Ty_, std::string_view Postfix_) in PostfixQualifiedType()
512 const std::string_view Name;
515 NameType(std::string_view Name_) : Node(KNameType), Name(Name_) {} in NameType()
[all …]
H A DStringViewExtras.h24 inline bool starts_with(std::string_view self, char C) noexcept { in starts_with()
28 inline bool starts_with(std::string_view haystack, in starts_with()
29 std::string_view needle) noexcept { in starts_with()
H A DUtility.h71 std::string_view(TempPtr, Temp.data() + Temp.size() - TempPtr));
86 operator std::string_view() const { in string_view() function
87 return std::string_view(Buffer, CurrentPosition); in string_view()
122 OutputBuffer &operator+=(std::string_view R) {
137 OutputBuffer &prepend(std::string_view R) { in prepend()
152 OutputBuffer &operator<<(std::string_view R) { return (*this += R); }
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DDLangDemangle.cpp36 Demangler(std::string_view Mangled);
58 void parseMangle(OutputBuffer *Demangled, std::string_view &Mangled);
68 void decodeNumber(std::string_view &Mangled, unsigned long &Ret);
81 bool decodeBackrefPos(std::string_view &Mangled, long &Ret);
91 bool decodeBackref(std::string_view &Mangled, std::string_view &Ret);
101 void parseSymbolBackref(OutputBuffer *Demangled, std::string_view &Mangled);
110 void parseTypeBackref(std::string_view &Mangled);
119 bool isSymbolName(std::string_view Mangled);
128 void parseIdentifier(OutputBuffer *Demangled, std::string_view &Mangled);
139 void parseLName(OutputBuffer *Demangled, std::string_view &Mangled,
[all …]
H A DMicrosoftDemangle.cpp34 static bool startsWithDigit(std::string_view S) { in startsWithDigit()
43 static bool consumeFront(std::string_view &S, char C) { in consumeFront()
50 static bool consumeFront(std::string_view &S, std::string_view C) { in consumeFront()
57 static bool consumeFront(std::string_view &S, std::string_view PrefixA, in consumeFront()
58 std::string_view PrefixB, bool A) { in consumeFront()
59 const std::string_view &Prefix = A ? PrefixA : PrefixB; in consumeFront()
63 static bool startsWith(std::string_view S, std::string_view PrefixA, in startsWith()
64 std::string_view PrefixB, bool A) { in startsWith()
65 const std::string_view &Prefix = A ? PrefixA : PrefixB; in startsWith()
69 bool Demangler::isMemberPointer(std::string_view MangledName, bool &Error) { in isMemberPointer()
[all …]
H A DDemangle.cpp20 std::string llvm::demangle(std::string_view MangledName) { in demangle()
40 static bool isItaniumEncoding(std::string_view S) { in isItaniumEncoding()
46 static bool isRustEncoding(std::string_view S) { return starts_with(S, "_R"); } in isRustEncoding()
48 static bool isDLangEncoding(std::string_view S) { return starts_with(S, "_D"); } in isDLangEncoding()
50 bool llvm::nonMicrosoftDemangle(std::string_view MangledName, in nonMicrosoftDemangle()
H A DRustDemangle.cpp34 std::string_view Name;
81 std::string_view Input;
96 bool demangle(std::string_view MangledName);
132 uint64_t parseHexNumber(std::string_view &HexDigits);
135 void print(std::string_view S);
151 char *llvm::rustDemangle(std::string_view MangledName) { in rustDemangle()
190 bool Demangler::demangle(std::string_view Mangled) { in demangle()
203 Input = Dot == std::string_view::npos ? Mangled : Mangled.substr(0, Dot); in demangle()
215 if (Dot != std::string_view::npos) { in demangle()
775 std::string_view HexDigits; in demangleConstInt()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DTypeName.h42 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view Name = __PRETTY_FUNCTION__; in getTypeName()
44 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view Key = "DesiredTypeName = "; in getTypeName()
45 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view TemplateParamsStart = in getTypeName()
55 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view SubstitutionKey = in getTypeName()
69 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view Name = __FUNCSIG__; in getTypeName()
71 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view Key = "getTypeName<"; in getTypeName()
72 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view GetTypeNameStart = in getTypeName()
76 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view SubstitutionKey = in getTypeName()
80 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view RmPrefixClass = in getTypeName()
84 LLVM_GET_TYPE_NAME_CONSTEXPR std::string_view RmPrefixStruct = in getTypeName()
[all …]
/freebsd/usr.sbin/ctld/
H A Dctld.hh48 #include <string_view>
64 auth(std::string_view secret) : a_secret(secret) {} in auth()
65 auth(std::string_view secret, std::string_view mutual_user, in auth()
66 std::string_view mutual_secret) : in auth()
111 const struct auth *find_auth(std::string_view user) const;
113 bool add_host_nqn(std::string_view nqn);
114 bool host_permitted(std::string_view nqn) const;
119 bool add_initiator_name(std::string_view initiator_name);
120 bool initiator_permitted(std::string_view initiator_nam
[all...]
/freebsd/contrib/llvm-project/libc/src/__support/CPP/
H A Dstring_view.h26 class string_view {
47 LIBC_INLINE bool equals(string_view Other) const { in equals()
68 LIBC_INLINE constexpr string_view() : Data(nullptr), Len(0) {} in string_view() function
73 LIBC_INLINE constexpr string_view(const char *Str) in string_view() function
77 LIBC_INLINE constexpr string_view(const char *Str, size_t N) in string_view() function
104 LIBC_INLINE int compare(string_view Other) const { in compare()
114 LIBC_INLINE bool operator==(string_view Other) const { return equals(Other); }
115 LIBC_INLINE bool operator!=(string_view Other) const {
118 LIBC_INLINE bool operator<(string_view Other) const {
121 LIBC_INLINE bool operator<=(string_view Other) const {
[all …]
H A Dstring.h64 LIBC_INLINE string(const string_view &view) in string()
87 LIBC_INLINE string &operator=(const string_view &view) {
122 LIBC_INLINE operator string_view() const { in string_view() function
123 return string_view(buffer_, size_); in string_view()
171 return string_view(lhs) == string_view(rhs);
174 return string_view(lhs) != string_view(rhs);
177 return string_view(lhs) < string_view(rhs);
180 return string_view(lhs) <= string_view(rhs);
183 return string_view(lhs) > string_view(rhs);
186 return string_view(lhs) >= string_view(rhs);
H A Dstringstream.h51 string_view str() const { return string_view(data.data(), write_ptr); } in str()
54 StringStream &operator<<(string_view str) {
78 return operator<<(string_view(str));
/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dzoned_time.h53 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static const time_zone* locate_zone(string_view __name) {
87 _LIBCPP_HIDE_FROM_ABI explicit zoned_time(string_view __name)
88 requires(requires { __traits::locate_zone(string_view{}); } &&
89 constructible_from<_TimeZonePtr, decltype(__traits::locate_zone(string_view{}))>)
100 _LIBCPP_HIDE_FROM_ABI zoned_time(string_view __name, const sys_time<_Duration>& __tp)
101 requires requires { _TimeZonePtr{__traits::locate_zone(string_view{})}; }
109 _LIBCPP_HIDE_FROM_ABI zoned_time(string_view __name, const local_time<_Duration>& __tp)
111 _TimeZonePtr{__traits::locate_zone(string_view{})};
122 …_LIBCPP_HIDE_FROM_ABI zoned_time(string_view __name, const local_time<_Duration>& __tp, choose __c)
124 _TimeZonePtr{__traits::locate_zone(string_view{})};
[all …]
H A Dtime_zone_link.h41 …_FROM_ABI explicit time_zone_link(__private_constructor_tag, string_view __name, string_view __tar… in time_zone_link()
47 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI string_view name() const noexcept { return __name_; } in name()
48 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI string_view target() const noexcept { return __target_; } in target()
H A Dtzdb.h50 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI const time_zone* __locate_zone(string_view __name) const { in __locate_zone()
62 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI const time_zone* locate_zone(string_view __name) const { in locate_zone()
74 _LIBCPP_HIDE_FROM_ABI const time_zone* __find_in_zone(string_view __name) const noexcept { in __find_in_zone()
/freebsd/contrib/llvm-project/libc/src/__support/StringUtil/
H A Dsignal_to_string.cpp45 cpp::string_view build_signal_string(int sig_num, cpp::span<char> buffer) { in build_signal_string()
46 cpp::string_view base_str; in build_signal_string()
48 base_str = cpp::string_view("Real-time signal"); in build_signal_string()
51 base_str = cpp::string_view("Unknown signal"); in build_signal_string()
68 cpp::string_view get_signal_string(int sig_num) { in get_signal_string()
73 cpp::string_view get_signal_string(int sig_num, cpp::span<char> buffer) { in get_signal_string()
H A Derror_to_string.cpp53 cpp::string_view build_error_string(int err_num, cpp::span<char> buffer) { in build_error_string()
68 cpp::string_view get_error_string(int err_num) { in get_error_string()
73 cpp::string_view get_error_string(int err_num, cpp::span<char> buffer) { in get_error_string()
81 cpp::optional<cpp::string_view> try_get_errno_name(int err_num) { in try_get_errno_name()
H A Derror_to_string.h19 cpp::string_view get_error_string(int err_num);
21 cpp::string_view get_error_string(int err_num, cpp::span<char> buffer);
23 cpp::optional<cpp::string_view> try_get_errno_name(int err_num);
H A Dmessage_mapper.h22 cpp::string_view msg;
61 cpp::string_view string_mappings[ARR_SIZE] = {""}; in MessageMapper()
81 cpp::optional<cpp::string_view> get_str(int num) const { in get_str()
86 return cpp::optional<cpp::string_view>(); in get_str()
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/
H A Dcoff_platform.cpp112 void *dlopen(std::string_view Name, int Mode);
114 void *dlsym(void *Header, std::string_view Symbol);
123 std::vector<std::pair<std::string_view, ExecutorAddrRange>> Secs,
127 std::vector<std::pair<std::string_view, ExecutorAddrRange>> Secs);
140 Expected<void *> dlopenImpl(std::string_view Path, int Mode);
148 JITDylibState *getJITDylibStateByName(std::string_view Path);
150 std::string_view Symbol);
161 std::unordered_map<std::string_view, void *> JDNameToHeader;
178 COFFPlatformRuntimeState::getJITDylibStateByName(std::string_view Name) { in getJITDylibStateByName()
253 void *COFFPlatformRuntimeState::dlopen(std::string_view Path, int Mode) { in dlopen()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DCOFFImportFile.h31 constexpr std::string_view ImportDescriptorPrefix = "__IMPORT_DESCRIPTOR_";
32 constexpr std::string_view NullImportDescriptorSymbolName =
34 constexpr std::string_view NullThunkDataPrefix = "\x7f";
35 constexpr std::string_view NullThunkDataSuffix = "_NULL_THUNK_DATA";
/freebsd/contrib/llvm-project/libcxx/include/
H A Dstring_view17 string_view synopsis
65 typedef basic_string_view<char> string_view;
190 template <> struct hash<string_view>;
209 # include <__cxx03/string_view>
221 # include <__fwd/string_view.h>
270 // string_view constructors. This can be refactored when this exact form isn't needed anymore.
329 "string_view::string_view(_CharT *, size_t): length does not fit in difference_type");
331 … __len == 0 || __s != nullptr, "string_view::string_view(_CharT *, size_t): received nullptr");
341 …(__end - __begin) >= 0, "std::string_view::string_view(iterator, sentinel) received invalid range"…
412 …return _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__pos < size(), "string_view[] index out of bounds"), _…
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dstring_view17 string_view synopsis
65 typedef basic_string_view<char> string_view;
190 template <> struct hash<string_view>;
214 #include <__cxx03/__fwd/string_view.h>
250 // string_view constructors. This can be refactored when this exact form isn't needed anymore.
345 …return _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__pos < size(), "string_view[] index out of bounds"), _…
349 return __pos >= size() ? (__throw_out_of_range("string_view::at"), __data_[0]) : __data_[__pos];
353 …return _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(!empty(), "string_view::front(): string is empty"), __d…
357 …return _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(!empty(), "string_view::back(): string is empty"), __da…
386 __throw_out_of_range("string_view::copy");
[all …]

1234567