MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / yaml_hex_value

Function yaml_hex_value

src/cli/config_yaml_edit.c:1887–1898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1885}
1886
1887static int yaml_hex_value(char c) {
1888 if (c >= '0' && c <= '9') {
1889 return c - '0';
1890 }
1891 if (c >= 'a' && c <= 'f') {
1892 return c - 'a' + YAML_HEX_ALPHA_OFFSET;
1893 }
1894 if (c >= 'A' && c <= 'F') {
1895 return c - 'A' + YAML_HEX_ALPHA_OFFSET;
1896 }
1897 return YAML_ERROR;
1898}
1899
1900static int yaml_decode_single_quoted(const char *data, size_t start, size_t end,
1901 yaml_buf_t *decoded) {

Callers 1

yaml_decode_hex_escapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected