mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Replaced calls to std.ctype.isspace with std.ctype.isWhite.
In a few places, I replaced it with std.uni.isUniWhite, but for the most part, I replaced it with std.ctype.isWhite.
This commit is contained in:
parent
0e1afe82cb
commit
76e1cfd2e9
8 changed files with 21 additions and 20 deletions
|
@ -14,7 +14,7 @@ module std.array;
|
|||
|
||||
import core.memory, core.bitop;
|
||||
import std.algorithm, std.conv, std.ctype, std.encoding, std.exception,
|
||||
std.range, std.string, std.traits, std.typecons, std.utf;
|
||||
std.range, std.string, std.traits, std.typecons, std.uni, std.utf;
|
||||
import std.c.string : memcpy;
|
||||
version(unittest) import core.exception, std.stdio, std.typetuple;
|
||||
|
||||
|
@ -814,7 +814,7 @@ assert(equal(splitter(a), ["", "a", "bcd", "ef", "gh"][]));
|
|||
*/
|
||||
auto splitter(String)(String s) if (isSomeString!String)
|
||||
{
|
||||
return std.algorithm.splitter!isspace(s);
|
||||
return std.algorithm.splitter!(std.uni.isUniWhite)(s);
|
||||
}
|
||||
|
||||
unittest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue