mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Replaced calls to std.string and std.ctype's tolower with their toLower counterparts.
This commit is contained in:
parent
d10ee6c2f6
commit
654f35a677
8 changed files with 16 additions and 16 deletions
|
@ -2723,7 +2723,7 @@ assert(!find(a, 2).empty); // found
|
|||
|
||||
// Case-insensitive find of a string
|
||||
string[] s = [ "Hello", "world", "!" ];
|
||||
assert(!find!("tolower(a) == b")(s, "hello").empty);
|
||||
assert(!find!("toLower(a) == b")(s, "hello").empty);
|
||||
----
|
||||
*/
|
||||
R find(alias pred = "a == b", R, E)(R haystack, E needle)
|
||||
|
@ -6462,7 +6462,7 @@ unittest
|
|||
sort(a);
|
||||
assert(isSorted(a));
|
||||
auto b = rndstuff!(string);
|
||||
sort!("tolower(a) < tolower(b)")(b);
|
||||
sort!("toLower(a) < toLower(b)")(b);
|
||||
assert(isSorted!("toupper(a) < toupper(b)")(b));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue