Subject: Re: Valid and incomplete character sequence and mbrlen()
To: None <kay@kaynet.or.jp>
From: Masao Uebayashi <uebayasi@soum.co.jp>
List: tech-userlevel
Date: 10/29/2001 11:00:22
I got a different result on my home 1.5 box, which has too old
XPG4DL. I get the same result on my office 1.5.1 box, which has newer
XPG4DL.
The multibyte string in my previous example contains, a 3 byte shift
sequence, 2 byte characters x 3, and a 3 byte shift sequence, so
- mbrlen(string, 0, ps)
- mbrlen(string, 1, ps)
- mbrlen(string, 2, ps)
- mbrlen(string, 3, ps)
- mbrlen(string, 4, ps)
should all return -2. And
- mbrlen(string, 5, ps)
- mbrlen(string, 6, ps)
- mbrlen(string, 7, ps)
- :
should return 5. Please tell me if I miss something...
Regards,
Masao