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

Function skipWhitespace

xml/_parse_sync.ts:180–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178 }
179
180 function skipWhitespace(): void {
181 while (pos < len) {
182 const code = input.charCodeAt(pos);
183 if (code === 0x20 || code === 0x09 || code === 0x0a || code === 0x0d) {
184 pos++;
185 } else {
186 break;
187 }
188 }
189 }
190
191 function isWhitespace(code: number): boolean {
192 return code === 0x20 || code === 0x09 || code === 0x0a || code === 0x0d;

Callers 3

parseDTDInternalSubsetFunction · 0.85
parseEntityDeclarationFunction · 0.85
parseSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected