Get the UTF-8 path at offset index */ It is the caller's responsibility to free `outPath` via NFD_FreePathU8() if this function returns * NFD_OKAY */
| 927 | /* It is the caller's responsibility to free `outPath` via NFD_FreePathU8() if this function returns |
| 928 | * NFD_OKAY */ |
| 929 | nfdresult_t NFD_PathSet_GetPathU8(const nfdpathset_t* pathSet, |
| 930 | nfdpathsetsize_t index, |
| 931 | nfdu8char_t** outPath) { |
| 932 | // call the native function |
| 933 | nfdnchar_t* outPathN; |
| 934 | nfdresult_t res = NFD_PathSet_GetPathN(pathSet, index, &outPathN); |
| 935 | |
| 936 | if (res != NFD_OKAY) { |
| 937 | return res; |
| 938 | } |
| 939 | |
| 940 | // convert the outPath to UTF-8 |
| 941 | res = CopyWCharToNFDChar(outPathN, *outPath); |
| 942 | |
| 943 | // free the native out path, and return the result |
| 944 | NFD_FreePathN(outPathN); |
| 945 | return res; |
| 946 | } |
| 947 | |
| 948 | nfdresult_t NFD_PathSet_EnumNextU8(nfdpathsetenum_t* enumerator, nfdu8char_t** outPath) { |
| 949 | // call the native function |
no test coverage detected