Lines Matching refs:so

182     "  -so : write data to stdout\n"

221 #define ShowProgInfo(so)
223 static void ShowProgInfo(CStdOutStream *so)
225 if (!so)
228 *so
256 *so << " locale=" << GetLocale();
262 *so << " UTF8=" << (is_IsNativeUTF8 ? "+" : "-");
265 *so << " use-UTF8=" << (g_ForceToUTF8 ? "+" : "-");
269 *so << " wchar_t=" << wchar_t_size * 8 << "-bit";
274 *so << " Files=" << off_t_size * 8 << "-bit";
280 *so << " Threads:" << numCpus;
282 *so << " OPEN_MAX:" << openMAX;
287 *so << " temp_path:" << temp;
292 *so << ", ASM";
300 *so << ", " << s;
309 if (CPU_IsSupported_AES()) *so << ",AES";
313 if (CPU_IsSupported_CRC32()) *so << ",CRC32";
315 if (CPU_IsSupported_CRYPTO()) *so << ",CRYPTO";
317 if (CPU_IsSupported_SHA1()) *so << ",SHA1";
318 if (CPU_IsSupported_SHA2()) *so << ",SHA2";
323 *so << endl;
327 static void ShowCopyrightAndHelp(CStdOutStream *so, bool needHelp)
329 if (!so)
331 *so << kCopyrightString;
332 // *so << "# CPUs: " << (UInt64)NWindows::NSystem::GetNumberOfProcessors() << endl;
333 ShowProgInfo(so);
334 *so << endl;
336 *so << kHelpString;
340 static void PrintStringRight(CStdOutStream &so, const char *s, unsigned size)
344 so << ' ';
345 so << s;
348 static void PrintUInt32(CStdOutStream &so, UInt32 val, unsigned size)
352 PrintStringRight(so, s, size);
356 static void PrintNumber(CStdOutStream &so, UInt32 val, unsigned numDigits)
362 so << s;
366 static void PrintLibIndex(CStdOutStream &so, int libIndex)
369 PrintUInt32(so, (UInt32)libIndex, 2);
371 so << " ";
372 so << ' ';
375 static void PrintString(CStdOutStream &so, const UString &s, unsigned size)
378 so << s;
380 so << ' ';
388 static void PrintWarningsPaths(const CErrorPathCodes &pc, CStdOutStream &so)
392 so.NormalizePrint_UString(fs2us(pc.Paths[i]));
393 so << " : ";
394 so << NError::MyFormatMessage(pc.Codes[i]) << endl;
396 so << "----------------" << endl;
401 CStdOutStream *so,
456 if (so)
460 *so << kEverythingIsOk << endl;
748 static void PrintHexId(CStdOutStream &so, UInt64 id)
752 PrintStringRight(so, s, 8);
883 // so the following code was not enabled:
950 CStdOutStream &so = (g_StdStream ? *g_StdStream : g_StdOut);
951 so << endl << s << endl;
1017 CStdOutStream &so = (g_StdStream ? *g_StdStream : g_StdOut);
1021 so << endl << "Libs:" << endl;
1024 PrintLibIndex(so, (int)i);
1027 so << ": " << (lib.Version >> 16) << ".";
1028 PrintNumber(so, lib.Version & 0xffff, 2);
1029 so << " : " << lib.Path << endl;
1033 so << endl << "Formats:" << endl;
1045 PrintLibIndex(so, arc.LibIndex);
1047 so << " ";
1050 so << (char)(arc.UpdateEnabled ? 'C' : ' ');
1055 so << (char)((arc.Flags & ((UInt32)1 << b)) != 0 ? kArcFlags[b] : '.');
1056 so << ' ';
1063 so << (char)((arc.TimeFlags & ((UInt32)1 << b)) != 0 ? kArcTimeFlags[b] : '.');
1064 so << arc.Get_DefaultTimePrec();
1065 so << ' ';
1068 so << ' ';
1069 PrintString(so, arc.Name, 8);
1070 so << ' ';
1087 PrintString(so, s, 13);
1088 so << ' ';
1091 so << "offset=" << arc.SignatureOffset << ' ';
1093 // so << "numSignatures = " << arc.Signatures.Size() << " ";
1098 so << " || ";
1105 so << ' ';
1109 so << (char)b;
1113 so << GetHex((b >> 4) & 0xF);
1114 so << GetHex(b & 0xF);
1118 so << endl;
1121 so << endl << "Codecs:" << endl; // << "Lib ID Name" << endl;
1127 PrintLibIndex(so, -1);
1130 so << ' ';
1132 so << cod.NumStreams;
1134 so << (char)(cod.CreateEncoder ? 'E' : ' ');
1135 so << (char)(cod.CreateDecoder ? 'D' : ' ');
1136 so << (char)(cod.IsFilter ? 'F' : ' ');
1138 so << ' ';
1139 PrintHexId(so, cod.Id);
1140 so << ' ' << cod.Name << endl;
1150 PrintLibIndex(so, codecs->GetCodec_LibIndex(j));
1154 so << ' ';
1156 so << numStreams;
1158 so << (char)(codecs->GetCodec_EncoderIsAssigned(j) ? 'E' : ' ');
1159 so << (char)(codecs->GetCodec_DecoderIsAssigned(j) ? 'D' : ' ');
1163 so << (char)(isFilter ? 'F' : isFilter_Assigned ? ' ' : '*');
1167 so << ' ';
1172 PrintHexId(so, id);
1173 so << ' ' << codecs->GetCodec_Name(j) << endl;
1179 so << endl << "Hashers:" << endl; // << " L Size ID Name" << endl;
1184 PrintLibIndex(so, -1);
1185 PrintUInt32(so, codec.DigestSize, 4);
1186 so << ' ';
1187 PrintHexId(so, codec.Id);
1188 so << ' ' << codec.Name << endl;
1196 PrintLibIndex(so, codecs->GetHasherLibIndex(j));
1197 PrintUInt32(so, codecs->GetHasherDigestSize(j), 4);
1198 so << ' ';
1199 PrintHexId(so, codecs->GetHasherId(j));
1200 so << ' ' << codecs->GetHasherName(j) << endl;
1208 CStdOutStream &so = (g_StdStream ? *g_StdStream : g_StdOut);
1210 options.Properties, options.NumIterations, (FILE *)so);
1213 so << endl;
1349 CStdOutStream *so = g_StdStream;
1353 if (so)
1355 *so << endl;
1359 *so << "Archives: " << ecs->NumTryArcs << endl;
1360 *so << "OK archives: " << ecs->NumOkArcs << endl;
1367 if (so)
1368 *so << "Can't open as archive: " << ecs->NumCantOpenArcs << endl;
1374 if (so)
1375 *so << "Archives with Errors: " << ecs->NumArcsWithError << endl;
1378 if (so)
1381 *so << "Archives with Warnings: " << ecs->NumArcsWithWarnings << endl;
1385 *so << endl;
1387 *so << "Warnings: " << ecs->NumOpenArcWarnings << endl;
1394 if (so)
1396 *so << endl;
1398 *so << "Open Errors: " << ecs->NumOpenArcErrors << endl;
1405 if (so) {
1410 *so << endl;
1412 *so << "Sub items Errors: " << ecs->NumFileErrors << endl;
1418 *so << "Folders: " << stat.NumFolders << endl;
1420 *so << "Files: " << stat.NumFiles << endl;
1423 *so << "Alternate Streams: " << stat.NumAltStreams << endl;
1424 *so << "Alternate Streams Size: " << stat.AltStreams_UnpackSize << endl;
1427 *so
1432 *so << endl;
1433 PrintHashStat(*so, hb);
1436 } // if (so)