primary= ( str1 str2 -- ? ) (original) (raw)

primary= ( str1 str2 -- ? )
Collation and weak comparison

Prev: string<=> ( str1 str2 -- <=> )
Next: secondary= ( str1 str2 -- ? )

Vocabulary
unicode

Inputs

str1 a string
str2 a string

Outputs

? a boolean

Word description
This checks whether the first level of collation key is identical. This is the least specific kind of equality test. In Latin script, it can be understood as ignoring case, punctuation, whitespace and accent marks.

Definition

USING: unicode.private ;

IN: unicode

: primary= ( str1 str2 -- ? ) 3 insensitive= ;