MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / NFD_PathSet_EnumNextU8

Function NFD_PathSet_EnumNextU8

extern/nfd/nfd_win.cpp:948–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948nfdresult_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}

Callers

nothing calls this directly

Calls 3

CopyWCharToNFDCharFunction · 0.85
NFD_PathSet_EnumNextNFunction · 0.70
NFD_FreePathNFunction · 0.70

Tested by

no test coverage detected