// Ported from js-yaml v3.13.1:
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

export const BOM = 0xfeff; /* BOM */
export const TAB = 0x09; /* Tab */
export const LINE_FEED = 0x0a; /* LF */
export const CARRIAGE_RETURN = 0x0d; /* CR */
export const SPACE = 0x20; /* Space */
export const EXCLAMATION = 0x21; /* ! */
export const DOUBLE_QUOTE = 0x22; /* " */
export const SHARP = 0x23; /* # */
export const PERCENT = 0x25; /* % */
export const AMPERSAND = 0x26; /* & */
export const SINGLE_QUOTE = 0x27; /* ' */
export const ASTERISK = 0x2a; /* * */
export const PLUS = 0x2b; /* + */
export const COMMA = 0x2c; /* , */
export const MINUS = 0x2d; /* - */
export const DOT = 0x2e; /* . */
export const COLON = 0x3a; /* : */
export const SMALLER_THAN = 0x3c; /* < */
export const GREATER_THAN = 0x3e; /* > */
export const QUESTION = 0x3f; /* ? */
export const COMMERCIAL_AT = 0x40; /* @ */
export const LEFT_SQUARE_BRACKET = 0x5b; /* [ */
export const BACKSLASH = 0x5c; /* \ */
export const RIGHT_SQUARE_BRACKET = 0x5d; /* ] */
export const GRAVE_ACCENT = 0x60; /* ` */
export const LEFT_CURLY_BRACKET = 0x7b; /* { */
export const VERTICAL_LINE = 0x7c; /* | */
export const RIGHT_CURLY_BRACKET = 0x7d; /* } */

export function isEOL(c: number): boolean {
  return c === LINE_FEED || c === CARRIAGE_RETURN;
}

export function isWhiteSpace(c: number): boolean {
  return c === TAB || c === SPACE;
}

export function isWhiteSpaceOrEOL(c: number): boolean {
  return isWhiteSpace(c) || isEOL(c);
}

export function isFlowIndicator(c: number): boolean {
  return (
    c === COMMA ||
    c === LEFT_SQUARE_BRACKET ||
    c === RIGHT_SQUARE_BRACKET ||
    c === LEFT_CURLY_BRACKET ||
    c === RIGHT_CURLY_BRACKET
  );
}

// denoCacheMetadata={"headers":{"cf-ray":"a223e658cd997db6-LAX","alt-svc":"h3=\":443\"; ma=86400","server":"cloudflare","cross-origin-resource-policy":"cross-origin","content-length":"1901","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=rCIwWJ3RduuWsZtTjeCN1MBv4Z%2BYEqYuc8x71YuaU%2BWjR%2FrJsTh0kfFzJ1BIGu1wzn%2FSkep6o%2B6I29RLG4HG9PLx5u2IPFRoJoIE4L2k49UQVWac7F6%2BJ6c%3D\"}]}","x-robots-tag":"noindex","cache-control":"public, max-age=31536000, immutable","access-control-allow-origin":"*","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","vary":"Origin","content-type":"text/typescript","date":"Tue, 28 Jul 2026 12:31:15 GMT","age":"3469474","cf-cache-status":"HIT","x-jsr-backend":"modules","etag":"\"2a9e20cc3f2876afccbf7637811fd0b9\"","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","accept-ranges":"bytes","x-content-type-options":"nosniff","set-cookie":"__cf_bm=b4OXum1.LrR.JNi5Jg.xL.wJGTNBHkJ9InCWqxx0g_Y-1785241875.3364234-1.0.1.1-OAp3FdVsjNOGOv96VoaUZFhmIPIJWJbCw4orq7Fa.2z33oumL93XBtkoGywjGEOmOkehRX2sLFBwRwwCRO4ZJwL1EN1FrAPMAbN246.nxy6lFiEmYA_LbLo4DrP8ZR.t; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","access-control-expose-headers":"*"},"url":"https://jsr.io/@std/yaml/1.0.5/_chars.ts","time":1785241875}