diff options
author | Karl Williamson <khw@cpan.org> | 2022-09-22 04:34:24 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-09-29 05:51:06 -0600 |
commit | b5c77da6f1edee7fdbccb212e9a589f84806152b (patch) | |
tree | bc4cafd81859274279aab159eb6ff4cb508fb2e6 /proto.h | |
parent | a8ee4325d5c88e2fe877764610743afed53482cb (diff) | |
download | perl-b5c77da6f1edee7fdbccb212e9a589f84806152b.tar.gz |
locale.c Change function to return a string, not print
This makes some print statements less awkward, and is more flexible,
which will be used in future commits
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5121,9 +5121,6 @@ PERL_CALLCONV void Perl_set_padlist(CV * cv, PADLIST * padlist); #define PERL_ARGS_ASSERT_SET_PADLIST \ assert(cv) # if defined(PERL_IN_LOCALE_C) -STATIC void S_print_bytes_for_locale(pTHX_ const char * const s, const char * const e, const bool is_utf8); -#define PERL_ARGS_ASSERT_PRINT_BYTES_FOR_LOCALE \ - assert(s); assert(e) # if defined(USE_LOCALE) STATIC const char * S_get_LC_ALL_display(pTHX); #define PERL_ARGS_ASSERT_GET_LC_ALL_DISPLAY @@ -5697,6 +5694,9 @@ PERL_CALLCONV SV* Perl_hfree_next_entry(pTHX_ HV *hv, STRLEN *indexp) #endif #if defined(PERL_IN_LOCALE_C) +STATIC const char * S_get_displayable_string(pTHX_ const char * const s, const char * const e, const bool is_utf8); +#define PERL_ARGS_ASSERT_GET_DISPLAYABLE_STRING \ + assert(s); assert(e) # if defined(USE_LOCALE) STATIC unsigned int S_get_category_index(const int category, const char * locale); #define PERL_ARGS_ASSERT_GET_CATEGORY_INDEX |