Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: XS unpackstring, flags and useage

by BrowserUk (Patriarch)
on May 25, 2018 at 02:00 UTC ( [id://1215183]=note: print w/replies, xml ) Need Help??


in reply to XS unpackstring, flags and useage

It does/can contain:

/* flags (note that type modifiers can also be used as flags!) */ #define FLAG_WAS_UTF8 0x40 #define FLAG_PARSE_UTF8 0x20 /* Parse as utf8 */ #define FLAG_UNPACK_ONLY_ONE 0x10 #define FLAG_DO_UTF8 0x08 /* The underlying string is utf8 + */ #define FLAG_SLASH 0x04 #define FLAG_COMMA 0x02 #define FLAG_PACK 0x01

See Perl_unpackstring in pp_Pack.c

At a cursory glance, the only useful input value seems to be FLAG_DO_UTF8, all the others are set internally, and even that seems to be checked and set if need internally.

Ie. set to 0 and let it work it out until you need to know more.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1215183]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found