category

# `http_text_helpers`

Internal shared helpers for ASCII case normalization and HTTP optional whitespace trimming.

Availability:
`logtalk_load(http_core(loader))`
Author: Paulo Moura
Version: 1:0:0
Date: 2026-06-05
Compilation flags:
`static`
Uses:
list
Remarks:
(none)
Inherited public predicates:
(none)

## Public predicates

(no local declarations; see entity ancestors if any)

## Protected predicates

### `ows_code/1`

Succeeds when the code is HTTP optional whitespace (SP or HTAB).

Compilation flags:
`static`
Template:
`ows_code(Code)`
Mode and number of proofs:
`ows_code(+integer)` - `zero_or_one`

### `lowercase_ascii_codes/2`

Converts uppercase ASCII letter codes in a list to lowercase, leaving all other codes unchanged.

Compilation flags:
`static`
Template:
`lowercase_ascii_codes(Codes,LowercaseCodes)`
Mode and number of proofs:
`lowercase_ascii_codes(+list(integer),-list(integer))` - `one`

### `uppercase_ascii_codes/2`

Converts lowercase ASCII letter codes in a list to uppercase, leaving all other codes unchanged.

Compilation flags:
`static`
Template:
`uppercase_ascii_codes(Codes,UppercaseCodes)`
Mode and number of proofs:
`uppercase_ascii_codes(+list(integer),-list(integer))` - `one`

### `trim_trailing_ows_codes/2`

Removes trailing HTTP optional whitespace codes from a list.

Compilation flags:
`static`
Template:
`trim_trailing_ows_codes(Codes,TrimmedCodes)`
Mode and number of proofs:
`trim_trailing_ows_codes(+list(integer),-list(integer))` - `one`

### `trim_ows_codes/2`

Removes leading and trailing HTTP optional whitespace codes from a list.

Compilation flags:
`static`
Template:
`trim_ows_codes(Codes,TrimmedCodes)`
Mode and number of proofs:
`trim_ows_codes(+list(integer),-list(integer))` - `one`

## Private predicates

(no local declarations; see entity ancestors if any)

## Operators

(none)