Stdlib module strings.vitl

This page is a wiki-style reference for one concrete stdlib file. It explains what the file owns, where it fits in the family, and how to decide whether this is the right surface to depend on.

Visual portrait of strings.vitl
Wiki-style portrait for strings.vitl.

Family: stdlib

Kind: public stdlib surface

Page style: this reference follows the same “encyclopedic card + portrait + usage contract” logic as the keyword pages, but for stdlib modules.

Summary

Overview

FieldValue
Pathstrings.vitl
Familystdlib
Kindpublic stdlib surface
Line count787
Declared procedures128
Declared forms/picks19

`strings.vitl` is a public stdlib surface inside the `stdlib` family. It should be read as one focused slice of the broader family responsibility: Top-level map of the Vitte standard library and the responsibilities owned by each family.

Purpose

This file should be chosen because of responsibility, not because its name “sounds close enough”. Inside the stdlib family, it carries one focused part of the contract and keeps that responsibility separate from neighboring concerns.

  • Domain values start in `core` and `strings`.
  • Grouped data moves through `collections` or `data`.
  • Structured export goes through `json` and `encoding`.
  • Filesystem or process interaction goes through `path`, `io`, `os`, or `sysinfo`.
  • Explicit runtime coordination goes through `async`, `threading`, `kernel`, or `ffi`.

Taxonomy

Think of this page as a generated encyclopedia entry rather than a hand-written tutorial. The goal is to show what kind of module this is, how dense it is, and what reading strategy makes sense before depending on it.

  • Large algorithm surface: this file exposes many procedures and likely acts as a domain toolkit rather than a single thin wrapper.
  • Owns domain vocabulary: the module declares data shapes in addition to executable helpers, so its types are part of the contract.
  • Minimal top-level dependencies: the module reads as mostly self-contained from its opening declarations.
  • Explicit export surface: the file ends with visible export declarations instead of relying only on implicit namespace discovery.

Implementation profile

This profile is inferred directly from the source text. It does not replace reading the file, but it tells you quickly whether the module is mostly declarative, loop-heavy, branch-heavy, or organized around many small exits.

SignalCountWhat it suggests
if0Branching density and local decision-making.
while0Loop-heavy or iterative implementation style.
for0Collection-style traversal at source level.
match0Variant-driven branching or grammar-style decoding.
let2Local state and intermediate value density.
give127Number of explicit exit points and result shaping.

Top-level API inventory

SurfaceItems
Proceduressb_new, sb_append, sb_append_char, sb_append_int, sb_insert, sb_delete, sb_replace, sb_to_string, sb_clear, sb_length, sb_version, sb_ready
FormsStringLibraryManifest, StringLibraryHealth, StringLibrarySummary, StringBuilder, StringBuilderReport, StringNormalizeReport, StringFormatReport, StringSearchReport, StringTokenizeReport, StringUnicodeReport, StringMetricsReport, StringTemplateReport
Picksnone declared at top level
Constantsnone declared at top level
Exports*

Imported surfaces

This file does not advertise a top-level `use` surface in its opening declarations. That often means it is either self-contained or an aggregation layer.

Position in family

This file is module 14 of 15 in the stdlib family when ordered by path. By procedure count it ranks 4, and by line count it ranks 2. Those ranks are useful as rough signals of breadth, not as quality judgments.

Declaration map

The declaration map turns raw source into a scan-friendly catalog. It is useful when the file is large enough that a reader wants to orient by kinds of surfaces first.

LineNameKindRole
1vitte/stringsspaceDeclares the namespace that anchors this file in the stdlib tree.
7StringLibraryManifestformIntroduces a structured data shape that other procedures can exchange.
13StringLibraryHealthformIntroduces a structured data shape that other procedures can exchange.
38StringLibrarySummaryformIntroduces a structured data shape that other procedures can exchange.
43StringBuilderformIntroduces a structured data shape that other procedures can exchange.
49StringBuilderReportformIntroduces a structured data shape that other procedures can exchange.
56sb_newprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
64sb_appendprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
70sb_append_charprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
75sb_append_intprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
80sb_insertprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
85sb_deleteprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
89sb_replaceprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
93sb_to_stringprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
97sb_clearprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
102sb_lengthprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
106sb_versionprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
110sb_readyprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
114sb_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
123sb_selftestprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
131strings_versionprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
135strings_nameprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
139strings_module_countprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
143strings_modulesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
168strings_manifestprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
176strings_readyprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
180strings_healthprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
207strings_summaryprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
214strings_selftestprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
221StringNormalizeReportformIntroduces a structured data shape that other procedures can exchange.
227StringFormatReportformIntroduces a structured data shape that other procedures can exchange.
233StringSearchReportformIntroduces a structured data shape that other procedures can exchange.
240StringTokenizeReportformIntroduces a structured data shape that other procedures can exchange.
246StringUnicodeReportformIntroduces a structured data shape that other procedures can exchange.
252StringMetricsReportformIntroduces a structured data shape that other procedures can exchange.
260StringTemplateReportformIntroduces a structured data shape that other procedures can exchange.
266StringPredicateReportformIntroduces a structured data shape that other procedures can exchange.
274StringTransformReportformIntroduces a structured data shape that other procedures can exchange.
280StringAsciiReportformIntroduces a structured data shape that other procedures can exchange.
286StringWhitespaceReportformIntroduces a structured data shape that other procedures can exchange.
292StringLocaleReportformIntroduces a structured data shape that other procedures can exchange.
298StringPatternReportformIntroduces a structured data shape that other procedures can exchange.
305StringInflectionReportformIntroduces a structured data shape that other procedures can exchange.
313str_starts_withprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
317str_ends_withprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
321str_containsprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
325str_index_ofprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
329str_last_index_ofprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
333str_substringprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
337str_splitprocOwns path semantics, traversal, or normalization.
341str_split_limitprocOwns path semantics, traversal, or normalization.
345str_joinprocOwns path semantics, traversal, or normalization.
349str_repeatprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
353str_reverseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
357str_pad_leftprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
361str_pad_rightprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
365str_centerprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
369str_indentprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
373str_dedentprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
378str_uppercaseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
382str_lowercaseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
386str_title_caseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
390str_capitalizeprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
394str_swap_caseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
399str_trimprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
403str_trim_leftprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
407str_trim_rightprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
411str_trim_charsprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
416str_equalsprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
420str_equals_ignore_caseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
424str_compareprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
428str_levenshtein_distanceprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
433str_escapeprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
437str_unescapeprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
441str_escape_quotesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
445str_escape_newlinesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
450str_formatprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
454str_interpolateprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
459is_digitprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
463is_alphaprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
467is_alnumprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
471is_spaceprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
475is_upperprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
479is_lowerprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
483is_punctprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
487str_replaceprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
491str_replace_allprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
495str_remove_prefixprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
499str_remove_suffixprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
503str_normalize_whitespaceprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
507str_slugprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
511str_snake_caseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
515str_kebab_caseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
519str_camel_caseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
523str_pascal_caseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
527str_wrapprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
531str_linesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
535str_wordsprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
539str_tokensprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
543str_countprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
547str_is_emptyprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
551str_is_blankprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
555str_ascii_onlyprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
559str_repeat_charprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
563str_center_textprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
567str_truncateprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
571str_headprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
575str_tailprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
579str_normalize_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
587str_format_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
595str_search_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
604str_tokenize_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
612strings_max_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
616str_ascii_stripprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
620str_ascii_only_textprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
624str_whitespace_collapseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
628str_whitespace_trim_linesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
632str_locale_normalizeprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
636str_locale_compareprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
640str_pattern_matchprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
644str_pattern_replaceprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
648str_pattern_findprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
652str_pluralizeprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
656str_singularizeprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
660str_inflect_countprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
664str_ascii_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
672str_whitespace_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
680str_locale_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
688str_pattern_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
697str_inflection_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
706str_unicode_normalizeprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
710str_unicode_foldprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
714str_unicode_strip_accentsprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
718str_lengthprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
722str_word_countprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
726str_line_countprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
730str_template_applyprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
734str_template_renderprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
738str_template_expandprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
742str_is_empty_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
752str_transform_upperprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
756str_transform_lowerprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
760str_transform_titleprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
764str_transform_slugprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
768str_transform_snakeprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
772str_transform_kebabprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
776str_transform_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
784string_reportprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.

The table is exhaustive for top-level declarations of the selected kinds. This file declares 148 matching surfaces.

Representative signatures

These signatures are shown in source order so the page keeps the feel of a reference manual, not just a keyword cloud.

  • form StringLibraryManifest { (line 7)
  • form StringLibraryHealth { (line 13)
  • form StringLibrarySummary { (line 38)
  • form StringBuilder { (line 43)
  • form StringBuilderReport { (line 49)
  • proc sb_new(capacity: i32) -> StringBuilder { (line 56)
  • proc sb_append(sb: StringBuilder, text_value: string) -> int { (line 64)
  • proc sb_append_char(sb: StringBuilder, ch: i32) -> int { (line 70)
  • proc sb_append_int(sb: StringBuilder, value: i32) -> int { (line 75)
  • proc sb_insert(sb: StringBuilder, index: i32, text_value: string) -> int { (line 80)
  • proc sb_delete(sb: StringBuilder, start: i32, end: i32) -> int { (line 85)
  • proc sb_replace(sb: StringBuilder, oldstr: string, newstr: string) -> int { (line 89)
  • proc sb_to_string(sb: StringBuilder) -> string { (line 93)
  • proc sb_clear(sb: StringBuilder) { (line 97)
  • proc sb_length(sb: StringBuilder) -> i32 { (line 102)
  • proc sb_version() -> string { (line 106)
  • proc sb_ready() -> bool { (line 110)
  • proc sb_report(sb: StringBuilder) -> StringBuilderReport { (line 114)

The list is intentionally capped here; the source file declares 147 matching signatures in total.

How to use this module

Start by reading the file as an ownership boundary. Ask three questions: what enters this module, what stable types or procedures it exports, and what adjacent module should stay outside of it.

  1. Read space and top-level imports first so the ownership boundary of strings.vitl is explicit.
  2. Read declared forms and picks before algorithms so the data vocabulary is stable in your head.
  3. Traverse procedures in source order; the early helpers usually explain the naming and numeric conventions used later.
  4. Use the source landmarks section below as a table of contents when the file is large.
  5. Only after that compare neighbor modules, because the right boundary choice matters more than memorizing one helper name.

User example

This example is generated from the actual stdlib module surface. Its job is not to be the smallest snippet possible; its job is to show a realistic consumer-shaped file that exercises the module and mirrors the language keywords the module itself relies on.

space demo/strings
form DemoState {
  ready: bool,
  note: string
}
proc run_example() -> DemoState {
  let ready: bool = sb_ready()
  give DemoState { ready: ready, note: "ok" }
}
export run_example

Keyword coverage

This table makes the “all keywords of the module” requirement auditable. It compares the detected Vitte keywords in the source file with the generated consumer example above.

KeywordPresent in module sourceUsed in generated user example
spaceyesyes
formyesyes
caseyesno
procyesyes
letyesyes
giveyesyes
exportyesyes
trueyesno
andyesno

Keywords still not exercised directly in the generated snippet: case, true, and. The page still lists them here so the gap is visible.

Source shape

space vitte/strings
form StringLibraryManifest {
  name: string,
  version: string,
  modules: [string]
}
form StringLibraryHealth {
  ready: bool,
  module_count: i32,
  builder_ready: bool,

The excerpt is not meant to replace the file. It exists to make the module recognizable at first glance, the same way a Wikipedia infobox helps the reader orient before reading the whole article.

Source landmarks

Large files are easier to retain when they have visible landmarks. When the source contains explicit section banners, they are surfaced here; otherwise the first major declarations are used as anchors.

  • Advanced String Library — Formatting, Parsing, Manipulation

Source organization

When a file carries its own internal chaptering, those chapters usually reveal the intended reading order better than a flat symbol list. This section reconstructs that organization from the source itself.

Opening declarations

Top-level items: 1. Procedures: 0. Data surfaces: 0. Constants: 0.

First visible names: vitte/strings

Advanced String Library — Formatting, Parsing, Manipulation

Top-level items: 148. Procedures: 128. Data surfaces: 19. Constants: 0.

First visible names: StringLibraryManifest, StringLibraryHealth, StringLibrarySummary, StringBuilder, StringBuilderReport, sb_new, sb_append, sb_append_char, sb_append_int, sb_insert

Complete API catalog

This catalog is the exhaustive file-level index for the module. It is intentionally closer to a generated encyclopedia appendix than to a tutorial summary.

Data surfaces

LineNameSignatureRole
7StringLibraryManifestform StringLibraryManifest {Introduces a structured data shape that other procedures can exchange.
13StringLibraryHealthform StringLibraryHealth {Introduces a structured data shape that other procedures can exchange.
38StringLibrarySummaryform StringLibrarySummary {Introduces a structured data shape that other procedures can exchange.
43StringBuilderform StringBuilder {Introduces a structured data shape that other procedures can exchange.
49StringBuilderReportform StringBuilderReport {Introduces a structured data shape that other procedures can exchange.
221StringNormalizeReportform StringNormalizeReport {Introduces a structured data shape that other procedures can exchange.
227StringFormatReportform StringFormatReport {Introduces a structured data shape that other procedures can exchange.
233StringSearchReportform StringSearchReport {Introduces a structured data shape that other procedures can exchange.
240StringTokenizeReportform StringTokenizeReport {Introduces a structured data shape that other procedures can exchange.
246StringUnicodeReportform StringUnicodeReport {Introduces a structured data shape that other procedures can exchange.
252StringMetricsReportform StringMetricsReport {Introduces a structured data shape that other procedures can exchange.
260StringTemplateReportform StringTemplateReport {Introduces a structured data shape that other procedures can exchange.
266StringPredicateReportform StringPredicateReport {Introduces a structured data shape that other procedures can exchange.
274StringTransformReportform StringTransformReport {Introduces a structured data shape that other procedures can exchange.
280StringAsciiReportform StringAsciiReport {Introduces a structured data shape that other procedures can exchange.
286StringWhitespaceReportform StringWhitespaceReport {Introduces a structured data shape that other procedures can exchange.
292StringLocaleReportform StringLocaleReport {Introduces a structured data shape that other procedures can exchange.
298StringPatternReportform StringPatternReport {Introduces a structured data shape that other procedures can exchange.
305StringInflectionReportform StringInflectionReport {Introduces a structured data shape that other procedures can exchange.

Procedures

LineNameSignatureRole
56sb_newproc sb_new(capacity: i32) -> StringBuilder {Represents one top-level surface in the file contract and should be read as part of the module boundary.
64sb_appendproc sb_append(sb: StringBuilder, text_value: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
70sb_append_charproc sb_append_char(sb: StringBuilder, ch: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
75sb_append_intproc sb_append_int(sb: StringBuilder, value: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
80sb_insertproc sb_insert(sb: StringBuilder, index: i32, text_value: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
85sb_deleteproc sb_delete(sb: StringBuilder, start: i32, end: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
89sb_replaceproc sb_replace(sb: StringBuilder, oldstr: string, newstr: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
93sb_to_stringproc sb_to_string(sb: StringBuilder) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
97sb_clearproc sb_clear(sb: StringBuilder) {Represents one top-level surface in the file contract and should be read as part of the module boundary.
102sb_lengthproc sb_length(sb: StringBuilder) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
106sb_versionproc sb_version() -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
110sb_readyproc sb_ready() -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
114sb_reportproc sb_report(sb: StringBuilder) -> StringBuilderReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
123sb_selftestproc sb_selftest() -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
131strings_versionproc strings_version() -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
135strings_nameproc strings_name() -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
139strings_module_countproc strings_module_count() -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
143strings_modulesproc strings_modules() -> [string] {Represents one top-level surface in the file contract and should be read as part of the module boundary.
168strings_manifestproc strings_manifest() -> StringLibraryManifest {Represents one top-level surface in the file contract and should be read as part of the module boundary.
176strings_readyproc strings_ready() -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
180strings_healthproc strings_health() -> StringLibraryHealth {Represents one top-level surface in the file contract and should be read as part of the module boundary.
207strings_summaryproc strings_summary() -> StringLibrarySummary {Represents one top-level surface in the file contract and should be read as part of the module boundary.
214strings_selftestproc strings_selftest() -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
313str_starts_withproc str_starts_with(text_value: string, prefix: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
317str_ends_withproc str_ends_with(text_value: string, suffix: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
321str_containsproc str_contains(text_value: string, substr: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
325str_index_ofproc str_index_of(text_value: string, substr: string) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
329str_last_index_ofproc str_last_index_of(text_value: string, substr: string) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
333str_substringproc str_substring(text_value: string, start: i32, end: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
337str_splitproc str_split(text_value: string, delimiter: string) -> [string] {Owns path semantics, traversal, or normalization.
341str_split_limitproc str_split_limit(text_value: string, delimiter: string, limit: i32) -> [string] {Owns path semantics, traversal, or normalization.
345str_joinproc str_join(parts: [string], delimiter: string) -> string {Owns path semantics, traversal, or normalization.
349str_repeatproc str_repeat(text_value: string, count: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
353str_reverseproc str_reverse(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
357str_pad_leftproc str_pad_left(text_value: string, width: i32, padchar: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
361str_pad_rightproc str_pad_right(text_value: string, width: i32, padchar: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
365str_centerproc str_center(text_value: string, width: i32, padchar: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
369str_indentproc str_indent(text_value: string, spaces: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
373str_dedentproc str_dedent(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
378str_uppercaseproc str_uppercase(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
382str_lowercaseproc str_lowercase(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
386str_title_caseproc str_title_case(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
390str_capitalizeproc str_capitalize(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
394str_swap_caseproc str_swap_case(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
399str_trimproc str_trim(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
403str_trim_leftproc str_trim_left(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
407str_trim_rightproc str_trim_right(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
411str_trim_charsproc str_trim_chars(text_value: string, chars: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
416str_equalsproc str_equals(str1: string, str2: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
420str_equals_ignore_caseproc str_equals_ignore_case(str1: string, str2: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
424str_compareproc str_compare(str1: string, str2: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
428str_levenshtein_distanceproc str_levenshtein_distance(str1: string, str2: string) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
433str_escapeproc str_escape(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
437str_unescapeproc str_unescape(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
441str_escape_quotesproc str_escape_quotes(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
445str_escape_newlinesproc str_escape_newlines(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
450str_formatproc str_format(template: string, args: [string]) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
454str_interpolateproc str_interpolate(template: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
459is_digitproc is_digit(ch: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
463is_alphaproc is_alpha(ch: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
467is_alnumproc is_alnum(ch: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
471is_spaceproc is_space(ch: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
475is_upperproc is_upper(ch: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
479is_lowerproc is_lower(ch: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
483is_punctproc is_punct(ch: i32) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
487str_replaceproc str_replace(text_value: string, oldstr: string, newstr: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
491str_replace_allproc str_replace_all(text_value: string, oldstr: string, newstr: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
495str_remove_prefixproc str_remove_prefix(text_value: string, prefix: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
499str_remove_suffixproc str_remove_suffix(text_value: string, suffix: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
503str_normalize_whitespaceproc str_normalize_whitespace(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
507str_slugproc str_slug(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
511str_snake_caseproc str_snake_case(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
515str_kebab_caseproc str_kebab_case(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
519str_camel_caseproc str_camel_case(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
523str_pascal_caseproc str_pascal_case(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
527str_wrapproc str_wrap(text_value: string, width: i32) -> [string] {Represents one top-level surface in the file contract and should be read as part of the module boundary.
531str_linesproc str_lines(text_value: string) -> [string] {Represents one top-level surface in the file contract and should be read as part of the module boundary.
535str_wordsproc str_words(text_value: string) -> [string] {Represents one top-level surface in the file contract and should be read as part of the module boundary.
539str_tokensproc str_tokens(text_value: string) -> [string] {Represents one top-level surface in the file contract and should be read as part of the module boundary.
543str_countproc str_count(text_value: string, needle: string) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
547str_is_emptyproc str_is_empty(text_value: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
551str_is_blankproc str_is_blank(text_value: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
555str_ascii_onlyproc str_ascii_only(text_value: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
559str_repeat_charproc str_repeat_char(ch: i32, count: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
563str_center_textproc str_center_text(text_value: string, width: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
567str_truncateproc str_truncate(text_value: string, width: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
571str_headproc str_head(text_value: string, count: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
575str_tailproc str_tail(text_value: string, count: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
579str_normalize_reportproc str_normalize_report(text_value: string) -> StringNormalizeReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
587str_format_reportproc str_format_report(template: string) -> StringFormatReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
595str_search_reportproc str_search_report(haystack: string, needle: string) -> StringSearchReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
604str_tokenize_reportproc str_tokenize_report(text_value: string) -> StringTokenizeReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
612strings_max_reportproc strings_max_report() -> StringLibrarySummary {Represents one top-level surface in the file contract and should be read as part of the module boundary.
616str_ascii_stripproc str_ascii_strip(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
620str_ascii_only_textproc str_ascii_only_text(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
624str_whitespace_collapseproc str_whitespace_collapse(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
628str_whitespace_trim_linesproc str_whitespace_trim_lines(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
632str_locale_normalizeproc str_locale_normalize(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
636str_locale_compareproc str_locale_compare(str1: string, str2: string) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
640str_pattern_matchproc str_pattern_match(text_value: string, pattern: string) -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
644str_pattern_replaceproc str_pattern_replace(text_value: string, pattern: string, replacement: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
648str_pattern_findproc str_pattern_find(text_value: string, pattern: string) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
652str_pluralizeproc str_pluralize(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
656str_singularizeproc str_singularize(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
660str_inflect_countproc str_inflect_count(word: string, count: i32) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
664str_ascii_reportproc str_ascii_report(text_value: string) -> StringAsciiReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
672str_whitespace_reportproc str_whitespace_report(text_value: string) -> StringWhitespaceReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
680str_locale_reportproc str_locale_report(text_value: string) -> StringLocaleReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
688str_pattern_reportproc str_pattern_report(text_value: string, pattern: string) -> StringPatternReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
697str_inflection_reportproc str_inflection_report(text_value: string) -> StringInflectionReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
706str_unicode_normalizeproc str_unicode_normalize(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
710str_unicode_foldproc str_unicode_fold(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
714str_unicode_strip_accentsproc str_unicode_strip_accents(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
718str_lengthproc str_length(text_value: string) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
722str_word_countproc str_word_count(text_value: string) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
726str_line_countproc str_line_count(text_value: string) -> i32 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
730str_template_applyproc str_template_apply(template: string, data: [string]) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
734str_template_renderproc str_template_render(template: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
738str_template_expandproc str_template_expand(template: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
742str_is_empty_reportproc str_is_empty_report(text_value: string) -> StringPredicateReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
752str_transform_upperproc str_transform_upper(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
756str_transform_lowerproc str_transform_lower(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
760str_transform_titleproc str_transform_title(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
764str_transform_slugproc str_transform_slug(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
768str_transform_snakeproc str_transform_snake(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
772str_transform_kebabproc str_transform_kebab(text_value: string) -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
776str_transform_reportproc str_transform_report(text_value: string) -> StringTransformReport {Represents one top-level surface in the file contract and should be read as part of the module boundary.
784string_reportproc string_report() -> StringLibrarySummary {Represents one top-level surface in the file contract and should be read as part of the module boundary.

Exports

LineNameSignatureRole
787*export *Re-exports surfaces that the module wants to expose as part of its public boundary.

Integration boundaries

Within stdlib, this file should remain focused. If a future helper changes the host boundary, scheduling boundary, or data-shape boundary, it probably belongs in a neighbor module instead of being added here by convenience.

  • Family responsibility: Top-level map of the Vitte standard library and the responsibilities owned by each family.
  • Family architecture role: A realistic Vitte program usually starts in `core`, grows through `collections` or `data`, crosses textual boundaries with `json` or `encoding`, touches the host with `path` or `io`, and only then reaches system-facing families like `kernel`, `ffi`, `async`, or `threading`.

Composition guidance

Choose this module when

  • Choose strings.vitl when the main question is owned by this module rather than by transport, storage, orchestration, or user-interface code.
  • Domain values start in `core` and `strings`.
  • Grouped data moves through `collections` or `data`.
  • Structured export goes through `json` and `encoding`.
  • Filesystem or process interaction goes through `path`, `io`, `os`, or `sysinfo`.
  • Explicit runtime coordination goes through `async`, `threading`, `kernel`, or `ffi`.

Pause before extending it when

  • Avoid extending this file when the new helper mostly changes the boundary to host I/O, runtime coordination, or foreign integration instead of staying inside stdlib.
  • Check nearby modules such as GETTING_STARTED.vitl, core_alias.vitl, datetime.vitl before adding convenience wrappers here.

Relationship table

This table keeps the page closer to a real encyclopedia entry: a module is easier to understand when compared with its nearest alternatives in the same family.

NeighborProceduresData surfacesWhy compare it
GETTING_STARTED.vitl260Shares the same family boundary but carries a distinct slice of responsibility.
core_alias.vitl00Shares the same family boundary but carries a distinct slice of responsibility.
datetime.vitl13816Shares the same family boundary but carries a distinct slice of responsibility.
graphics.vitl50Shares the same family boundary but carries a distinct slice of responsibility.
memory.vitl13716Shares the same family boundary but carries a distinct slice of responsibility.
mod.vit162Shares the same family boundary but carries a distinct slice of responsibility.
network/http.vitl42Shares the same family boundary but carries a distinct slice of responsibility.
network/socket.vitl52Shares the same family boundary but carries a distinct slice of responsibility.

Neighbor modules