MCPcopy Create free account
hub / github.com/denoland/std / char

Method char

toml/_parser.ts:65–67  ·  view source on GitHub ↗

* Get current character * @param index - relative index from current position

(index = 0)

Source from the content-addressed store, hash-verified

63 * @param index - relative index from current position
64 */
65 char(index = 0) {
66 return this.#source[this.#position + index] ?? "";
67 }
68
69 /**
70 * Get sliced string

Callers 12

skipWhitespacesMethod · 0.95
nextUntilCharMethod · 0.95
isCurrentCharEOLMethod · 0.95
parserFactoryFunction · 0.95
fnFunction · 0.95
escapeSequenceFunction · 0.80
basicStringFunction · 0.80
literalStringFunction · 0.80
multilineBasicStringFunction · 0.80
multilineLiteralStringFunction · 0.80
arrayValueFunction · 0.80
inlineTableFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected