MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / Fims_XML_Encode

Function Fims_XML_Encode

Source/MediaInfo/Export/Export_Fims.cpp:43–60  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

41
42//---------------------------------------------------------------------------
43Ztring Fims_XML_Encode (const Ztring& Data)
44{
45 Ztring Result;
46 wstring::size_type Pos;
47 for (Pos=0; Pos<Data.size(); Pos++)
48 {
49 switch (Data[Pos])
50 {
51 case __T('"'): Result+=__T("&quot;"); break;
52 case __T('&'): Result+=__T("&amp;"); break;
53 case __T('\''): Result+=__T("&apos;"); break;
54 case __T('<'): Result+=__T("&lt;"); break;
55 case __T('>'): Result+=__T("&lg;"); break;
56 default: Result+=Data[Pos];
57 }
58 }
59 return Result;
60}
61
62//---------------------------------------------------------------------------
63int32u Fims_VideoCompressionCodeCS_termID(MediaInfo_Internal &MI, size_t StreamPos)

Callers 1

TransformMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected