| 946 | } |
| 947 | |
| 948 | nfdresult_t NFD_PathSet_EnumNextU8(nfdpathsetenum_t* enumerator, nfdu8char_t** outPath) { |
| 949 | // call the native function |
| 950 | nfdnchar_t* outPathN; |
| 951 | nfdresult_t res = NFD_PathSet_EnumNextN(enumerator, &outPathN); |
| 952 | |
| 953 | if (res != NFD_OKAY) { |
| 954 | return res; |
| 955 | } |
| 956 | |
| 957 | if (outPathN) { |
| 958 | // convert the outPath to UTF-8 |
| 959 | res = CopyWCharToNFDChar(outPathN, *outPath); |
| 960 | |
| 961 | // free the native out path, and return the result |
| 962 | NFD_FreePathN(outPathN); |
| 963 | } else { |
| 964 | *outPath = nullptr; |
| 965 | res = NFD_OKAY; |
| 966 | } |
| 967 | |
| 968 | return res; |
| 969 | } |
nothing calls this directly
no test coverage detected