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

Function NFD_PathSet_GetPathU8

extern/nfd/nfd_win.cpp:929–946  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

927/* It is the caller's responsibility to free `outPath` via NFD_FreePathU8() if this function returns
928 * NFD_OKAY */
929nfdresult_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
948nfdresult_t NFD_PathSet_EnumNextU8(nfdpathsetenum_t* enumerator, nfdu8char_t** outPath) {
949 // call the native function

Callers 1

GetPathFunction · 0.85

Calls 3

CopyWCharToNFDCharFunction · 0.85
NFD_PathSet_GetPathNFunction · 0.70
NFD_FreePathNFunction · 0.70

Tested by

no test coverage detected