MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / spvIsValidIDCharacter

Function spvIsValidIDCharacter

source/text.cpp:47–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45#include "spirv-tools/libspirv.h"
46
47bool spvIsValidIDCharacter(const char value) {
48 return value == '_' || 0 != ::isalnum(value);
49}
50
51// Returns true if the given string represents a valid ID name.
52bool spvIsValidID(const char* textValue) {

Callers 1

spvIsValidIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected