summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-08-04 18:16:10 -0600
committerKarl Williamson <khw@cpan.org>2019-09-02 21:52:10 -0600
commitea348ccb78d37293d5fc7720b8149bc1ac898065 (patch)
tree2871657d538e646eac5137761e09400388a7581a /perl.h
parentc515c80fda3530cf3f562e63012a7e02781fbc17 (diff)
downloadperl-ea348ccb78d37293d5fc7720b8149bc1ac898065.tar.gz
perlapi: Document IN_LOCALE, and related
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 937ad17065..647ec7123f 100644
--- a/perl.h
+++ b/perl.h
@@ -6133,6 +6133,27 @@ typedef struct am_table_short AMTS;
# define IN_SOME_LOCALE_FORM_COMPILETIME \
cBOOL(PL_hints & (HINT_LOCALE|HINT_LOCALE_PARTIAL))
+/*
+=head1 Locale-related functions and macros
+
+=for apidoc Amn|bool|IN_LOCALE
+
+Evaluates to TRUE if the plain locale pragma without a parameter (S<C<use
+locale>>) is in effect.
+
+=for apidoc Amn|bool|IN_LOCALE_COMPILETIME
+
+Evaluates to TRUE if, when compiling a perl program (including an C<eval>) if
+the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
+
+=for apidoc Amn|bool|IN_LOCALE_RUNTIME
+
+Evaluates to TRUE if, when executing a perl program (including an C<eval>) if
+the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
+
+=cut
+*/
+
# define IN_LOCALE \
(IN_PERL_COMPILETIME ? IN_LOCALE_COMPILETIME : IN_LOCALE_RUNTIME)
# define IN_SOME_LOCALE_FORM \