JsonRemedy.Layer3.LiteralProcessors (json_remedy v0.1.3)

View Source

Literal processing functions for Layer 3 syntax normalization.

Handles replacement of boolean and null literals (True/False/None → true/false/null) using optimized single-pass processing with proper word boundary detection.

Summary

Functions

Find matching literal at current position.

Optimized single-pass implementation of normalize_literals.

Functions

find_matching_literal(input, pos, replacements)

@spec find_matching_literal(String.t(), non_neg_integer(), list()) ::
  {:match, String.t(), String.t(), String.t()} | :no_match

Find matching literal at current position.

normalize_literals_direct(input)

@spec normalize_literals_direct(String.t()) :: {String.t(), list()}

Optimized single-pass implementation of normalize_literals.