move format to std.format

The reason is to do not import `std.uni` tables, `std.string` and
probably `std.algorithm`. Note that format is used in CTFE code and
`Exception` handing.

 And it is more comfortable to import `format` from `std.format`.

std.format: clean imports (2)

remove import std.math : pow from std.uni

update scope imports in std.algorithm

update scope imports in std.exception

doFormat -> template

update scope imports in std.typecons

update scope imports in std.functional

update scope imports in std.range

update std.conv scope import

std.format: clean imports (2)

remove import std.math : pow from std.uni

update scope imports in std.algorithm

update scope imports in std.exception

doFormat -> template

update scope imports in std.typecons

update scope imports in std.functional

update scope imports in std.range

move sfromat

add public import of sformat

use std.uni
This commit is contained in:
Ilya Yaroshenko 2014-11-15 21:43:14 +03:00
parent 49fedd02bd
commit efb880f651
9 changed files with 276 additions and 284 deletions

View file

@ -408,7 +408,7 @@ private T* addressOf(T)(ref T val) { return &val; }
// Also helps with missing imports errors.
private template algoFormat()
{
import std.string : format;
import std.format : format;
alias algoFormat = std.string.format;
}
@ -3632,7 +3632,7 @@ private struct SplitterResult(alias isTerminator, Range)
import std.uni : isWhite;
//@@@6791@@@
assert(equal(std.array.splitter("là dove terminava quella valle"), ["là", "dove", "terminava", "quella", "valle"]));
assert(equal(splitter("là dove terminava quella valle"), ["là", "dove", "terminava", "quella", "valle"]));
assert(equal(splitter!(std.uni.isWhite)("là dove terminava quella valle"), ["là", "dove", "terminava", "quella", "valle"]));
assert(equal(splitter!"a=='本'"("日本語"), ["日", "語"]));
}
@ -13879,7 +13879,7 @@ auto castSwitch(choices...)(Object switchObject)
///
unittest
{
import std.string : format;
import std.format : format;
class A
{