};
static const int TICKS_PER_MILLISECOND = 1;
-static const long SEC_IN_A_DAY = (24L * 60L * 60L);
-static const long long MINIMUM_VALUE_IN_SEC = 86400LL;
static const int DAYS_IN_LEAP_YEAR[] = { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 };
static const int DAYS[] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 };
static const int INT_HALF_BIT = 16;
curIndex += 2;
String special(L"/?#");
- int index = Scan(str, curIndex, special);
- if (index > curIndex)
+ int matchedIndex = Scan(str, curIndex, special);
+ if (matchedIndex > curIndex)
{
- r = str.SubString(curIndex, index - curIndex, authority);
+ r = str.SubString(curIndex, matchedIndex - curIndex, authority);
SysTryCatch(NID_BASE_UTIL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
}
- else if (index >= str.GetLength())
+ else if (matchedIndex >= str.GetLength())
{
r = E_INVALID_FORMAT;
goto CATCH;