MCPcopy Index your code
hub / github.com/formatjs/formatjs / quoteToken

Function quoteToken

packages/icu-messageformat-parser/printer.ts:104–108  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

102 let literalStart = 0
103
104 function quoteToken(start: number, end: number) {
105 result += message.slice(literalStart, start)
106 result += quoteSyntaxToken(message.slice(start, end))
107 literalStart = end
108 }
109
110 for (let i = 0; i < message.length; i++) {
111 const ch = message[i]

Callers 1

printEscapedMessageFunction · 0.85

Calls 1

quoteSyntaxTokenFunction · 0.85

Tested by

no test coverage detected