License:
BSD style: see license.txtAuthors:
Daniel KeepCredits:
Inspired in part by Andrei Alexandrescu's work on std.conv.
1 | auto v = to!(int)("123"); |
1 | auto v = to!(int)("abc", 456); |
1 2 3 4 5 6 7 | bool <-- Integer (0/!0), Char ('t'/'f'), String ("true"/"false") Integer <-- bool, Real, Char ('0'-'9'), String Real <-- Integer, String Imaginary <-- Complex Complex <-- Integer, Real, Imaginary Char <-- bool, Integer (0-9) String <-- bool, Integer, Real, Char |
1 2 | the_type to_the_type(); static T from_the_type(the_type); |
1 2 | the_type toTheType(); static T fromTheType(the_type); |
1 2 3 4 5 6 7 8 9 10 11 | the_type[] to_the_type_array(); the_type[] toTheTypeArray(); static T from_the_type_array(the_type[]); static T fromTheTypeArray(the_type[]); the_type[int] to_int_to_the_type_map(); the_type[int] toIntToTheTypeMap(); static T from_int_to_the_type_map(the_type[int]); static T fromIntToTheTypeMap(the_type[int]); |
1 2 | the_type to(the_type)(); static T from(the_type)(the_type); |
1 2 3 4 | char[] toString(); wchar[] toString16(); dchar[] toString32(); char[] toString(); |
Note:
This module contains imports to other Tango modules that needs semantic analysis to be discovered. If your build tool doesn't do this properly, causing compile or link time problems, import the relevant module explicitly.