File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,11 @@ namespace llvm {
258
258
return Length >= Prefix.Length &&
259
259
compareMemory (Data, Prefix.Data , Prefix.Length ) == 0 ;
260
260
}
261
+ [[nodiscard]] LLVM_DEPRECATED(
262
+ " Use starts_with instead" ,
263
+ " starts_with" ) bool startswith (StringRef Prefix) const {
264
+ return starts_with (Prefix);
265
+ }
261
266
262
267
// / Check if this string starts with the given \p Prefix, ignoring case.
263
268
[[nodiscard]] bool starts_with_insensitive (StringRef Prefix) const ;
@@ -268,6 +273,11 @@ namespace llvm {
268
273
compareMemory (end () - Suffix.Length , Suffix.Data , Suffix.Length ) ==
269
274
0 ;
270
275
}
276
+ [[nodiscard]] LLVM_DEPRECATED(
277
+ " Use ends_with instead" ,
278
+ " ends_with" ) bool endswith (StringRef Suffix) const {
279
+ return ends_with (Suffix);
280
+ }
271
281
272
282
// / Check if this string ends with the given \p Suffix, ignoring case.
273
283
[[nodiscard]] bool ends_with_insensitive (StringRef Suffix) const ;
You can’t perform that action at this time.
0 commit comments