Changes between Version 12 and Version 13 of TutTextConversions
- Timestamp:
- 04/17/07 02:51:18 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TutTextConversions
v12 v13 10 10 {{{ 11 11 #!d 12 13 14 12 // from text to numbers 13 int i = Integer.parse("302"); 14 real d = Float.parse("3.14159"); 15 15 16 17 18 16 // and from numbers to text 17 char[] intString = Integer.toUtf8(32); 18 char[] floatString = Float.toUtf8(3.14159); 19 19 }}} 20 20 23 23 {{{ 24 24 #!d 25 26 27 25 char[] eight = Unicode.toUtf8("test"); 26 wchar[] sixteen = Unicode.toUtf16("test"); 27 dchar[] thirtyTwo = Unicode.toUtf32("test"); 28 28 }}} 29 29 33 33 {{{ 34 34 #!d 35 36 35 auto layout = new Layout!(char); 36 char[] str = layout ("{} sells {} by the {}","Sally", "shells", "seashore"); 37 37 }}} 38 38