Skip to content

Commit

Permalink
perlapi: Combine sv_cmp_locale, _flags
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Jun 23, 2024
1 parent 548c8c6 commit faa385c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -8454,18 +8454,21 @@ Perl_sv_cmp_flags(pTHX_ SV *const sv1, SV *const sv2,
}

/*
=for apidoc sv_cmp_locale
=for apidoc sv_cmp_locale
=for apidoc_item sv_cmp_locale_flags

Compares the strings in two SVs in a locale-aware manner. Is UTF-8 and
S<C<'use bytes'>> aware, handles get magic, and will coerce its args to strings
if necessary. See also C<L</sv_cmp>>.
These each compare the strings in two SVs in a locale-aware manner, returning
-1, 0, or 1 indicating whether the string in C<sv1> is less than, equal to, or
greater than the string in C<sv2>.

=for apidoc sv_cmp_locale_flags
They are UTF-8 and S<C<'use bytes'>> aware, and will coerce their args to
strings if necessary.

C<sv_cmp_locale> always handles 'get' magic.
C<sv_cmp_locale_flags> only does so if C<flags> contains C<SV_GMAGIC>.
Otherwise, the two forms behave identically.

Compares the strings in two SVs in a locale-aware manner. Is UTF-8 and
S<C<'use bytes'>> aware and will coerce its args to strings if necessary. If
the flags contain C<SV_GMAGIC>, it handles get magic. See also
C<L</sv_cmp_flags>>.
See also C<L</sv_cmp>>.

=cut
*/
Expand Down

0 comments on commit faa385c

Please sign in to comment.