MCPcopy Create free account
hub / github.com/FastLED/FastLED / _escape_meson_string

Function _escape_meson_string

ci/wasm_build.py:510–516  ·  view source on GitHub ↗

Escape a string for safe insertion into a Meson .ini value. Meson INI uses single-quoted strings; backslashes need doubling and single quotes need escaping. Windows absolute paths are the common case.

(value: str)

Source from the content-addressed store, hash-verified

508
509
510def _escape_meson_string(value: str) -> str:
511 """Escape a string for safe insertion into a Meson .ini value.
512
513 Meson INI uses single-quoted strings; backslashes need doubling and
514 single quotes need escaping. Windows absolute paths are the common case.
515 """
516 return value.replace("\\", "\\\\").replace("'", "\\'")
517
518
519_emscripten_patch_applied = False

Callers 1

_render_wasm_cross_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected