Lines Matching +full:p7zip +full:- +full:full
1 /* 7zMain.c - Test application for 7z Decoder
2 2023-04-04 : Igor Pavlov : Public domain */
49 if (dest->size >= size) in Buf_EnsureSize()
63 #define MY_UTF8_START(n) (0x100 - (1 << (7 - (n))))
136 val = (((val - 0xD800) << 10) | (c2 - 0xDC00)) + 0x10000; in Utf16_To_Utf8()
159 *Utf16_To_Utf8(dest->data, src, src + srcLen) = 0; in Utf16_To_Utf8Buf()
180 buf->data[0] = 0; in Utf16_To_Char()
186 … codePage, 0, (LPCWSTR)s, (int)len, (char *)buf->data, (int)size, &defaultChar, &defUsed); in Utf16_To_Char()
189 buf->data[numChars] = 0; in Utf16_To_Char()
277 for (numDigits -= pos; numDigits > 0; numDigits--) in UInt64ToStr()
281 *s++ = temp[--pos]; in UInt64ToStr()
294 for (numDigits -= pos; numDigits > 0; numDigits--) in UIntToStr()
298 *s++ = temp[--pos]; in UIntToStr()
312 #define PERIOD_100 (PERIOD_4 * 25 - 1)
319 // MS uses long for BOOL, but long is 32-bit in MS. So we use int.
333 const int localdaylight = ptm->tm_isdst; /* daylight for local timezone */ in TIME_GetBias()
335 ptm->tm_isdst = localdaylight; /* use local daylight, not that of Greenwich */ in TIME_GetBias()
336 const LONG bias = (int)(mktime(ptm) - utc); in TIME_GetBias()
342 #define GET_TIME_64(pft) ((pft)->dwLowDateTime | ((UInt64)(pft)->dwHighDateTime << 32))
345 (ft)->dwLowDateTime = (DWORD)v64; \
346 (ft)->dwHighDateTime = (DWORD)(v64 >> 32);
354 v = (UInt64)((Int64)v - (Int64)TIME_GetBias() * TICKS_PER_SEC); in FileTimeToLocalFileTime()
363 (UInt64)60 * 60 * 24 * (89 + 365 * (kUnixTimeStartYear - kFileTimeStartYear));
368 return (Int64)(winTime / kNumTimeQuantumsInSecond) - (Int64)kUnixTimeOffset; in Time_FileTimeToUnixTime64()
386 ts->tv_sec = sec2; in FILETIME_To_timespec()
388 ts->tv_nsec = (long)((winTime % 10000000) * 100); in FILETIME_To_timespec()
394 ts->tv_sec = 0; in FILETIME_To_timespec()
396 ts->tv_nsec = UTIME_OMIT; // keep old timesptamp in FILETIME_To_timespec()
424 ft->dwLowDateTime = (DWORD)(t->Low); in NtfsFileTime_to_FILETIME()
425 ft->dwHighDateTime = (DWORD)(t->High); in NtfsFileTime_to_FILETIME()
434 // UInt64 v64 = nt->Low | ((UInt64)nt->High << 32); in ConvertFileTimeToString()
456 t = v / PERIOD_100; if (t == 4) t = 3; year += t * 100; v -= t * PERIOD_100; in ConvertFileTimeToString()
457 t = v / PERIOD_4; if (t == 25) t = 24; year += t * 4; v -= t * PERIOD_4; in ConvertFileTimeToString()
458 t = v / 365; if (t == 4) t = 3; year += t; v -= t * 365; in ConvertFileTimeToString()
467 v -= d; in ConvertFileTimeToString()
469 s = UIntToStr(s, year, 4); *s++ = '-'; in ConvertFileTimeToString()
470 UIntToStr_2(s, mon + 1); s[2] = '-'; s += 3; in ConvertFileTimeToString()
567 " x: eXtract files with full paths\n"); in main()
725 "- "); in main()
804 mtime.dwLowDateTime = (DWORD)(t->Low); in main()
805 mtime.dwHighDateTime = (DWORD)(t->High); in main()
813 ctime.dwLowDateTime = (DWORD)(t->Low); in main()
814 ctime.dwHighDateTime = (DWORD)(t->High); in main()
846 /* p7zip stores posix attributes in high 16 bits and adds 0x8000 as marker. in main()