Changeset 15007
- Timestamp:
- 2008-02-22T11:36:08+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/gsprintf.pm
r11632 r15007 33 33 use util; 34 34 35 @gsprintf::EXPORT_OK = qw 'gsprintf'; # functions we can export into namespace35 @gsprintf::EXPORT_OK = qw(gsprintf); # functions we can export into namespace 36 36 37 37 … … 246 246 247 247 248 sub debug_unicode_string 249 { 250 join("", 251 map { $_ > 255 ? # if wide character... 252 sprintf("\\x{%04X}", $_) : # \x{...} 253 chr($_) 254 } unpack("U*", $_[0])); # unpack Unicode characters 255 } 256 257 248 258 1;
Note:
See TracChangeset
for help on using the changeset viewer.