Changeset 1542
- Timestamp:
- 05/23/10 02:07:56 (15 years ago)
- Files:
-
- trunk/phobos/std/date.d (modified) (1 diff)
- trunk/phobos/std/random.d (modified) (1 diff)
- trunk/phobos/std/string.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/phobos/std/date.d
r1513 r1542 79 79 ticksPerHour = ticksPerMinute * 60, 80 80 ticksPerDay = ticksPerHour * 24, 81 81 } 82 82 83 83 deprecated alias ticksPerSecond TicksPerSecond; 84 84 deprecated alias ticksPerMs TicksPerMs; 85 85 deprecated alias ticksPerMinute TicksPerMinute; 86 86 deprecated alias ticksPerHour TicksPerHour; 87 87 deprecated alias ticksPerDay TicksPerDay; 88 88 89 deprecated 89 90 unittest 90 91 { 91 92 assert(ticksPerSecond == TicksPerSecond); 92 93 } 93 94 94 95 __gshared d_time localTZA = 0; 95 96 96 97 private immutable char[] daystr = "SunMonTueWedThuFriSat"; 97 98 private immutable char[] monstr = "JanFebMarAprMayJunJulAugSepOctNovDec"; 98 99 trunk/phobos/std/random.d
r1501 r1542 1154 1154 s = core.sys.posix.sys.time.time(null); 1155 1155 } 1156 1156 else 1157 1157 { 1158 1158 s = cast(ulong)((cast(long)tv.tv_sec << 32) + tv.tv_usec); 1159 1159 } 1160 1160 } 1161 1161 //rand_seed(cast(uint) s, cast(uint)(s >> 32)); 1162 1162 } 1163 1163 1164 1164 deprecated 1165 1165 unittest 1166 1166 { 1167 1167 static uint results[10] = 1168 1168 [ 1169 1169 0x8c0188cb, 1170 1170 0xb161200c, 1171 1171 0xfc904ac5, 1172 1172 0x2702e049, 1173 1173 0x9705a923, 1174 1174 0x1c139d89, trunk/phobos/std/string.d
r1500 r1542 4044 4044 deprecated int find(in char[] s, dchar c) 4045 4045 { 4046 4046 return indexOf(s, c, CaseSensitive.yes); 4047 4047 } 4048 4048 4049 4049 deprecated int find(in char[] str, in char[] sub) 4050 4050 { 4051 4051 return indexOf(str, sub, CaseSensitive.yes); 4052 4052 } 4053 4053 4054 deprecated 4054 4055 unittest 4055 4056 { 4056 4057 string a = "abc"; 4057 4058 string b = "bc"; 4058 4059 assert(find(a, b) == 1); 4059 4060 } 4060 4061 4061 4062 deprecated int ifind(in char[] s, dchar c) 4062 4063 { 4063 4064 return indexOf(s, c, CaseSensitive.no);
