File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8414,18 +8414,18 @@ public:
8414
8414
{
8415
8415
import std.algorithm.searching : countUntil, find;
8416
8416
import std.conv : to;
8417
- import std.string : strip;
8417
+ import std.string : strip, indexOf ;
8418
8418
8419
- auto dstr = to ! dstring ( strip(isoExtString) );
8419
+ auto str = strip(isoExtString);
8420
8420
8421
- auto tIndex = dstr.countUntil (' T' );
8421
+ auto tIndex = str.indexOf (' T' );
8422
8422
enforce(tIndex != - 1 , new DateTimeException(format(" Invalid ISO Extended String: %s" , isoExtString)));
8423
8423
8424
- auto found = dstr [tIndex + 1 .. $].find(' .' , ' Z' , ' +' , ' -' );
8425
- auto dateTimeStr = dstr [0 .. $ - found[0 ].length];
8424
+ auto found = str [tIndex + 1 .. $].find(' .' , ' Z' , ' +' , ' -' );
8425
+ auto dateTimeStr = str [0 .. $ - found[0 ].length];
8426
8426
8427
- dstring fracSecStr;
8428
- dstring zoneStr;
8427
+ typeof (str) fracSecStr;
8428
+ typeof (str) zoneStr;
8429
8429
8430
8430
if (found[1 ] != 0 )
8431
8431
{
You can’t perform that action at this time.
0 commit comments