@@ -195,9 +195,6 @@ namespace llvm {
195
195
return Length == RHS.Length && compare_insensitive (RHS) == 0 ;
196
196
}
197
197
198
- LLVM_NODISCARD
199
- bool equals_lower (StringRef RHS) const { return equals_insensitive (RHS); }
200
-
201
198
// / compare - Compare two strings; the result is -1, 0, or 1 if this string
202
199
// / is lexicographically less than, equal to, or greater than the \p RHS.
203
200
LLVM_NODISCARD
@@ -216,9 +213,6 @@ namespace llvm {
216
213
LLVM_NODISCARD
217
214
int compare_insensitive (StringRef RHS) const ;
218
215
219
- LLVM_NODISCARD
220
- int compare_lower (StringRef RHS) const { return compare_insensitive (RHS); }
221
-
222
216
// / compare_numeric - Compare two strings, treating sequences of digits as
223
217
// / numbers.
224
218
LLVM_NODISCARD
@@ -298,11 +292,6 @@ namespace llvm {
298
292
LLVM_NODISCARD
299
293
bool startswith_insensitive (StringRef Prefix) const ;
300
294
301
- LLVM_NODISCARD
302
- bool startswith_lower (StringRef Prefix) const {
303
- return startswith_insensitive (Prefix);
304
- }
305
-
306
295
// / Check if this string ends with the given \p Suffix.
307
296
LLVM_NODISCARD
308
297
bool endswith (StringRef Suffix) const {
@@ -314,11 +303,6 @@ namespace llvm {
314
303
LLVM_NODISCARD
315
304
bool endswith_insensitive (StringRef Suffix) const ;
316
305
317
- LLVM_NODISCARD
318
- bool endswith_lower (StringRef Prefix) const {
319
- return endswith_insensitive (Prefix);
320
- }
321
-
322
306
// / @}
323
307
// / @name String Searching
324
308
// / @{
@@ -345,11 +329,6 @@ namespace llvm {
345
329
LLVM_NODISCARD
346
330
size_t find_insensitive (char C, size_t From = 0 ) const ;
347
331
348
- LLVM_NODISCARD
349
- size_t find_lower (char C, size_t From = 0 ) const {
350
- return find_insensitive (C, From);
351
- }
352
-
353
332
// / Search for the first character satisfying the predicate \p F
354
333
// /
355
334
// / \returns The index of the first character satisfying \p F starting from
@@ -388,11 +367,6 @@ namespace llvm {
388
367
LLVM_NODISCARD
389
368
size_t find_insensitive (StringRef Str, size_t From = 0 ) const ;
390
369
391
- LLVM_NODISCARD
392
- size_t find_lower (StringRef Str, size_t From = 0 ) const {
393
- return find_insensitive (Str, From);
394
- }
395
-
396
370
// / Search for the last character \p C in the string.
397
371
// /
398
372
// / \returns The index of the last occurrence of \p C, or npos if not
@@ -416,11 +390,6 @@ namespace llvm {
416
390
LLVM_NODISCARD
417
391
size_t rfind_insensitive (char C, size_t From = npos) const ;
418
392
419
- LLVM_NODISCARD
420
- size_t rfind_lower (char C, size_t From = npos) const {
421
- return rfind_insensitive (C, From);
422
- }
423
-
424
393
// / Search for the last string \p Str in the string.
425
394
// /
426
395
// / \returns The index of the last occurrence of \p Str, or npos if not
@@ -435,9 +404,6 @@ namespace llvm {
435
404
LLVM_NODISCARD
436
405
size_t rfind_insensitive (StringRef Str) const ;
437
406
438
- LLVM_NODISCARD
439
- size_t rfind_lower (StringRef Str) const { return rfind_insensitive (Str); }
440
-
441
407
// / Find the first character in the string that is \p C, or npos if not
442
408
// / found. Same as find.
443
409
LLVM_NODISCARD
@@ -507,21 +473,13 @@ namespace llvm {
507
473
return find_insensitive (Other) != npos;
508
474
}
509
475
510
- LLVM_NODISCARD
511
- bool contains_lower (StringRef Other) const {
512
- return contains_insensitive (Other);
513
- }
514
-
515
476
// / Return true if the given character is contained in *this, and false
516
477
// / otherwise.
517
478
LLVM_NODISCARD
518
479
bool contains_insensitive (char C) const {
519
480
return find_insensitive (C) != npos;
520
481
}
521
482
522
- LLVM_NODISCARD
523
- bool contains_lower (char C) const { return contains_insensitive (C); }
524
-
525
483
// / @}
526
484
// / @name Helpful Algorithms
527
485
// / @{
@@ -739,10 +697,6 @@ namespace llvm {
739
697
return true ;
740
698
}
741
699
742
- bool consume_front_lower (StringRef Prefix) {
743
- return consume_front_insensitive (Prefix);
744
- }
745
-
746
700
// / Returns true if this StringRef has the given suffix and removes that
747
701
// / suffix.
748
702
bool consume_back (StringRef Suffix) {
@@ -763,10 +717,6 @@ namespace llvm {
763
717
return true ;
764
718
}
765
719
766
- bool consume_back_lower (StringRef Suffix) {
767
- return consume_back_insensitive (Suffix);
768
- }
769
-
770
720
// / Return a reference to the substring from [Start, End).
771
721
// /
772
722
// / \param Start The index of the starting character in the substring; if
0 commit comments