M
Michael Neumann
Hi,
How can I unpack two or more consecutive C-strings with the
String#unpack method? Like this:
"abc\000def\000".unpack("??") # => ["abc", "def"]
Currently, this seems not to be possible. Any chance to get the
following patch applied, which implements exactly this?
Regards,
Michael
Index: pack.c
===================================================================
RCS file: /src/ruby/pack.c,v
retrieving revision 1.69
diff -r1.69 pack.c
1287a1288,1290
How can I unpack two or more consecutive C-strings with the
String#unpack method? Like this:
"abc\000def\000".unpack("??") # => ["abc", "def"]
Currently, this seems not to be possible. Any chance to get the
following patch applied, which implements exactly this?
Regards,
Michael
Index: pack.c
===================================================================
RCS file: /src/ruby/pack.c,v
retrieving revision 1.69
diff -r1.69 pack.c
1287a1288,1290