diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-09-11 23:01:50 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-09-11 23:01:50 +0000 |
commit | 914184e127659d74e06479dfe3f4f7da0f8315c4 (patch) | |
tree | 2ca98a25b3263a98022007b758b445c4925edf22 /sv.h | |
parent | b3f5893fbbcce239e92f954ec9e230bdf28e6e79 (diff) | |
download | perl-914184e127659d74e06479dfe3f4f7da0f8315c4.tar.gz |
Document the SvUTF8*().
p4raw-id: //depot/perl@7052
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -575,6 +575,23 @@ Set the length of the string which is in the SV. See C<SvCUR>. #define SvNOK_only(sv) ((void)SvOK_off(sv), \ SvFLAGS(sv) |= (SVf_NOK|SVp_NOK)) +/* +=for apidoc Am|void|SvUTF8|SV* sv +Returns a boolean indicating whether the SV contains UTF-8 encoded data. + +=for apidoc Am|void|SvUTF8_on|SV *sv +Tells an SV that it is a string and encoded in UTF8. Do not use frivolously. + +=for apidoc Am|void|SvUTF8_off|SV *sv +Unsets the UTF8 status of an SV. + +=for apidoc Am|void|SvPOK_only_UTF8|SV* sv +Tells an SV that it is a UTF8 string (do not use frivolously) +and disables all other OK bits. + +=cut + */ + #define SvUTF8(sv) (SvFLAGS(sv) & SVf_UTF8) #define SvUTF8_on(sv) (SvFLAGS(sv) |= (SVf_UTF8)) #define SvUTF8_off(sv) (SvFLAGS(sv) &= ~(SVf_UTF8)) |