MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / IsCharacterText

Function IsCharacterText

Goldleaf/source/fs/fs_Explorer.cpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 NX_CONSTEXPR bool IsCharacterText(const char ch) {
37 return isascii(ch) && (isprint(ch) || (ch == '\n') || (ch == '\r') || (ch == '\t'));
38 }
39
40 constexpr size_t BinaryCheckWorkBufferSize = 0x200; // Same size as GodMode9
41 alignas(WorkBufferAlignment) u8 g_BinaryCheckWorkBuffer[BinaryCheckWorkBufferSize] = {};

Callers 1

IsFileBinaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected