Print this page
12743 man page spelling mistakes


 545        The  LC_COLLATE category provides a collation sequence definition for
 546        numerous utilities (such as sort(1), uniq(1), and so forth), regular
 547        expression matching (see regex(5)), and the strcoll(3C), strxfrm(3C),
 548        wcscoll(3C), and wcsxfrm(3C) functions.
 549 
 550 
 551        A collation sequence definition defines the relative order between
 552        collating elements (characters and multi-character collating elements)
 553        in the locale.  This order is expressed in terms of collation values,
 554        that is, by assigning each element one or more collation values (also
 555        known as collation weights).  The following capabilities are provided:
 556 
 557            1.     Multi-character collating elements. Specification of multi-
 558                   character collating elements (that is, sequences of two or
 559                   more characters to be collated as an entity).
 560 
 561            2.     User-defined ordering of collating elements. Each collating
 562                   element is assigned a collation value defining its order in
 563                   the character (or basic) collation sequence. This ordering
 564                   is used by regular expressions and pattern matching and,
 565                   unless  collation weights are explicity specified, also as
 566                   the collation weight to be used in sorting.
 567 
 568            3.     Multiple weights and equivalence classes. Collating elements
 569                   can be assigned one or more (up to the limit
 570                   {COLL_WEIGHTS_MAX} ) collating weights for use in sorting.
 571                   The first weight is hereafter referred to as the primary
 572                   weight.
 573 
 574            4.     One-to-Many mapping. A single character is mapped into a
 575                   string of collating elements.
 576 
 577            5.     Equivalence class definition. Two or more collating elements
 578                   have the same collation value (primary weight).
 579 
 580            6.     Ordering by weights. When two strings are compared to
 581                   determine their relative order, the two strings are first
 582                   broken up into a series of collating elements. The elements
 583                   in each successive pair of elements are then compared
 584                   according to the relative primary weights for the elements.
 585                   If equal, and more than one weight has been assigned, the


1830        |localedef Keyword | langinfo Constant | POSIX Locale Value |
1831        |yesexpr           | YESEXPR           | "^[yY]"            |
1832        |noexpr            | NOEXPR            | "^[nN]"            |
1833        |yesstr            | YESSTR            | "yes"              |
1834        |nostr             | NOSTR             | "no"               |
1835        +------------------+-------------------+--------------------+
1836 
1837 
1838        In an application conforming to the SUSv3 standard, the information on
1839        yesstr and nostr is not available.
1840 
1841 SEE ALSO
1842        date(1), locale(1), localedef(1), sort(1), tr(1), uniq(1),
1843        localeconv(3C), nl_langinfo(3C), setlocale(3C), strcoll(3C),
1844        strftime(3C), strptime(3C), strxfrm(3C), wcscoll(3C), wcsftime(3C),
1845        wcsxfrm(3C), wctype(3C), attributes(5), charmap(5), extensions(5),
1846        regex(5)
1847 
1848 
1849 
1850                                  April 9, 2016                       LOCALE(5)


 545        The  LC_COLLATE category provides a collation sequence definition for
 546        numerous utilities (such as sort(1), uniq(1), and so forth), regular
 547        expression matching (see regex(5)), and the strcoll(3C), strxfrm(3C),
 548        wcscoll(3C), and wcsxfrm(3C) functions.
 549 
 550 
 551        A collation sequence definition defines the relative order between
 552        collating elements (characters and multi-character collating elements)
 553        in the locale.  This order is expressed in terms of collation values,
 554        that is, by assigning each element one or more collation values (also
 555        known as collation weights).  The following capabilities are provided:
 556 
 557            1.     Multi-character collating elements. Specification of multi-
 558                   character collating elements (that is, sequences of two or
 559                   more characters to be collated as an entity).
 560 
 561            2.     User-defined ordering of collating elements. Each collating
 562                   element is assigned a collation value defining its order in
 563                   the character (or basic) collation sequence. This ordering
 564                   is used by regular expressions and pattern matching and,
 565                   unless collation weights are explicitly specified, also as
 566                   the collation weight to be used in sorting.
 567 
 568            3.     Multiple weights and equivalence classes. Collating elements
 569                   can be assigned one or more (up to the limit
 570                   {COLL_WEIGHTS_MAX} ) collating weights for use in sorting.
 571                   The first weight is hereafter referred to as the primary
 572                   weight.
 573 
 574            4.     One-to-Many mapping. A single character is mapped into a
 575                   string of collating elements.
 576 
 577            5.     Equivalence class definition. Two or more collating elements
 578                   have the same collation value (primary weight).
 579 
 580            6.     Ordering by weights. When two strings are compared to
 581                   determine their relative order, the two strings are first
 582                   broken up into a series of collating elements. The elements
 583                   in each successive pair of elements are then compared
 584                   according to the relative primary weights for the elements.
 585                   If equal, and more than one weight has been assigned, the


1830        |localedef Keyword | langinfo Constant | POSIX Locale Value |
1831        |yesexpr           | YESEXPR           | "^[yY]"            |
1832        |noexpr            | NOEXPR            | "^[nN]"            |
1833        |yesstr            | YESSTR            | "yes"              |
1834        |nostr             | NOSTR             | "no"               |
1835        +------------------+-------------------+--------------------+
1836 
1837 
1838        In an application conforming to the SUSv3 standard, the information on
1839        yesstr and nostr is not available.
1840 
1841 SEE ALSO
1842        date(1), locale(1), localedef(1), sort(1), tr(1), uniq(1),
1843        localeconv(3C), nl_langinfo(3C), setlocale(3C), strcoll(3C),
1844        strftime(3C), strptime(3C), strxfrm(3C), wcscoll(3C), wcsftime(3C),
1845        wcsxfrm(3C), wctype(3C), attributes(5), charmap(5), extensions(5),
1846        regex(5)
1847 
1848 
1849 
1850                                  May 16, 2020                        LOCALE(5)