From faa385cc15bac7afb0e79024c2cc69e2ed56e59c Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 10 Jun 2024 16:15:33 -0600 Subject: [PATCH] perlapi: Combine sv_cmp_locale, _flags --- sv.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/sv.c b/sv.c index ede9cbcfcd70..766fb030ec58 100644 --- a/sv.c +++ b/sv.c @@ -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> aware, handles get magic, and will coerce its args to strings -if necessary. See also C>. +These each compare the strings in two SVs in a locale-aware manner, returning +-1, 0, or 1 indicating whether the string in C is less than, equal to, or +greater than the string in C. -=for apidoc sv_cmp_locale_flags +They are UTF-8 and S> aware, and will coerce their args to +strings if necessary. + +C always handles 'get' magic. +C only does so if C contains C. +Otherwise, the two forms behave identically. -Compares the strings in two SVs in a locale-aware manner. Is UTF-8 and -S> aware and will coerce its args to strings if necessary. If -the flags contain C, it handles get magic. See also -C>. +See also C>. =cut */