Module encoding/html_char_utils
encoding/html_char_utils
HTML character utility functions.
Provides Unicode codepoint validation and conversion for HTML entity processing.
Example
{ is_valid_entity_code, from_code_point } :: import "std/encoding/html_char_utils";
assert(is_valid_entity_code(i32(65)), "A is valid");
s := from_code_point(i32(65)); // "A"
Functions
is_valid_entity_code
function
fn(c : i32) -> bool
Check if a Unicode codepoint is a valid HTML entity value.
Parameters
| Name | Type | Notes |
|---|---|---|
c | i32 |
Returns: bool
from_code_point
function
fn(c : i32) -> String
Convert a Unicode codepoint to a String.
Parameters
| Name | Type | Notes |
|---|---|---|
c | i32 |
Returns: String