// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
// This module is browser compatible.

import { CHAR_FORWARD_SLASH } from "../_common/constants.ts";

export function isPosixPathSeparator(code: number): boolean {
  return code === CHAR_FORWARD_SLASH;
}

// denoCacheMetadata={"headers":{"set-cookie":"__cf_bm=0TuoKNa56RWfgVMnIeh_tqturON0.HQJIBYg5vMNR5I-1785241875.295563-1.0.1.1-iGFeY2rNvhvPQdH.a2eazc6NcR79sAgRixq9pnDIFzN2NewpcKltAV4FMB728aYWUHSw0Jkc7zo4Ty9Ho_wcUXsg8uAgsZm_QdNIjbWgDTctSc98Aaq9PmLQ6tg0DoaE; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","alt-svc":"h3=\":443\"; ma=86400","etag":"\"645f33cec02ec7bfe4abcef50d55052e\"","date":"Tue, 28 Jul 2026 12:31:15 GMT","accept-ranges":"bytes","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';","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=tTfH2OAeYsHaBxOldZ5%2BZz6tJTOU2P%2FYnHoTjWMHq7Ge9h7wjKXPDVviN4JdVTQk%2BPVUgvvrKJXVxiv92To2Wa5jQa5ywXQWYSSq3QsEs%2BCQQggHDuL9Czo%3D\"}]}","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","cache-control":"public, max-age=31536000, immutable","x-robots-tag":"noindex","age":"3393906","content-length":"391","x-jsr-backend":"modules","cf-ray":"a223e6589cd77db6-LAX","cf-cache-status":"HIT","vary":"Origin","access-control-expose-headers":"*","x-content-type-options":"nosniff","cross-origin-resource-policy":"cross-origin","content-type":"text/typescript","server":"cloudflare","access-control-allow-origin":"*"},"url":"https://jsr.io/@std/path/0.224.0/posix/_util.ts","time":1785241875}