Skip to main content

Module stdlib

Module stdlib 

Source
Expand description

Interscript::Stdlib parity: alias fragments, boundary semantics and the stage-level functions (upcase, separate, compose, …).

Structs§

Funcall
Stage-level function calls (rule(:string_case_directive), separate_directive, …). to-side upcase/downcase in sub rules are handled by the matcher, not here.

Enums§

FuncallName
Prim
Zero-width and character-class primitives reachable from the ISC grammar (zw_primitive rule) plus the Stdlib aliases they resolve to. Values mirror Interscript::Stdlib::ALIASES.

Functions§

downcase_per_word
Interscript::Stdlib::Functions.downcase with word_separator — same whole-match downcasing.
is_ruby_word_char
Onigmo’s UTF-8 word-char definition (what Ruby \b and \B consult — NOT \w, which is ASCII-only): the Unicode Word property = Alphabetic (L* + Nl) | Mark (Mn/Mc/Me) | Nd | Pc, PLUS the explicit ZWNJ/ZWJ additions (U+200C, U+200D) Onigmo special-cases — verified empirically against Ruby (a letter+ZWNJ pair is NOT a boundary). std exposes no general categories, hence unicode-general-category.
title_case
Interscript::Stdlib::Functions.title_case: gsub(/^(.)/, &:upcase) then gsub(/#{word_separator}(.)/, &:upcase) — the block upcases the WHOLE match (separator included), so the replacement for a match sep + ch is (sep + ch).to_uppercase.
unsupported_funcall
The funcalls that need external engines; unsupported in this slice.