Skip to content

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented Nov 25, 2025

Returns whether #string is fully normalized: entries have been sorted, deduplicated, and coalesced, and all entries are in normal form. In other words, #normalized? returns true if (and only if) #string is equal to #normalized_string. (#entries and #elements can be identical for non-normalized strings.)

Because this is a new method, the benchmarks monkey-patch a naive implementation of the method for prior versions of net-imap without it.

Returns whether `#string` is fully normalized: entries have been sorted,
deduplicated, and coalesced, and all entries are in normal form.  In
other words, `#normalized?` returns `true` if (and only if) `#string` is
equal to `#normalized_string`.  (`#entries` and `#elements` can be
identical for non-normalized strings.)

Because this is a new method, the benchmarks monkey-patch a naive
implementation of the method for prior versions of net-imap without it.
@nevans nevans merged commit b3f1dfe into master Nov 25, 2025
32 checks passed
@nevans nevans deleted the sequence_set/normalized_predicate branch November 25, 2025 22:16
@nevans nevans added the enhancement New feature or request label Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants