| 929 | |
| 930 | |
| 931 | bool |
| 932 | get_file_stream(LPCWSTR filename, wstring *file, wstring *stream) |
| 933 | { |
| 934 | |
| 935 | LPCWSTR pStreamColon = wcschr(filename, ':'); |
| 936 | |
| 937 | if (pStreamColon) { // have stream |
| 938 | if (file) { |
| 939 | *file = filename; |
| 940 | file->erase(pStreamColon - filename); |
| 941 | } |
| 942 | if (stream) |
| 943 | *stream = pStreamColon; |
| 944 | return true; |
| 945 | } else { |
| 946 | if (file) |
| 947 | *file = filename; |
| 948 | if (stream) |
| 949 | *stream = L""; |
| 950 | return false; |
| 951 | } |
| 952 | } |
| 953 | |
| 954 | bool |
| 955 | remove_stream_type(LPCWSTR stream, wstring& stream_without_type, wstring& type) |
no test coverage detected