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

Function Text2StreamT

Source/MediaInfo/MediaInfo_Internal.cpp:881–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881static stream_t Text2StreamT(const Ztring& ParameterName, size_t ToRemove)
882{
883 Ztring StreamKind_Text=ParameterName.substr(0, ParameterName.size()-ToRemove);
884 stream_t StreamKind2=Stream_Max;
885 if (StreamKind_Text==__T("General"))
886 StreamKind2=Stream_General;
887 if (StreamKind_Text==__T("Video"))
888 StreamKind2=Stream_Video;
889 if (StreamKind_Text==__T("Audio"))
890 StreamKind2=Stream_Audio;
891 if (StreamKind_Text==__T("Text"))
892 StreamKind2=Stream_Text;
893 if (StreamKind_Text==__T("Other"))
894 StreamKind2=Stream_Other;
895 if (StreamKind_Text==__T("Image"))
896 StreamKind2=Stream_Image;
897 if (StreamKind_Text==__T("Menu"))
898 StreamKind2=Stream_Menu;
899 return StreamKind2;
900}
901
902//***************************************************************************
903// std::cin threaded interface

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected