Re: PDD 4: Internal data types

2001-03-05 Thread Hong Zhang
struct perl_string { void *string_buffer; UV length; UV allocated; UV flags; } The low three bits of the flags field is reserved for the type of the string. The various types are: =over 4 =item BINARY (0) =item ASCII (1) =item EBCDIC (2) =item

Re: PDD 4: Internal data types

2001-03-05 Thread Dan Sugalski
At 12:01 PM 3/5/2001 -0800, Hong Zhang wrote: struct perl_string { void *string_buffer; UV length; UV allocated; UV flags; } The low three bits of the flags field is reserved for the type of the string. The various types are: =over 4 =item

PDD 4 internal data types, version 1.1

2001-03-05 Thread Dan Sugalski
Here's a mildly fixed up version of PDD 4. References to the NUM and INT types have been reduced to generic concepts rather than data types of some sort. Cut Here-- =head1 TITLE Perl's internal data types =head1 VERSION 1.1 =head2 CURRENT Maintainer: Dan Sugalski

Re: PDD 4: Internal data types

2001-03-05 Thread Hong Zhang
Here is an example, "re`sume`" takes 6 characters in Latin-1, but could take 8 characters in Unicode. All Perl functions that directly deal with character position and length will be sensitive to encoding. I wonder how we should handle this case. My first inclination is to force