replace x86.T with native.T
This commit is contained in:
parent
e29a5a3475
commit
f67f8c0118
12 changed files with 91 additions and 91 deletions
morphisms
|
@ -3,10 +3,10 @@
|
|||
```
|
||||
|
||||
morph_string_as_ascii_to_utf8 ()
|
||||
<Seq ~ <ValueTerminated 0> Char~Ascii~x86.UInt8>
|
||||
<Seq ~ <ValueTerminated 0> Char~Ascii~native.UInt8>
|
||||
--> <Seq Char~Unicode>
|
||||
~ UTF-8
|
||||
~ <Seq~<ValueTerminated 0> x86.UInt8>
|
||||
~ <Seq~<ValueTerminated 0> native.UInt8>
|
||||
```
|
||||
while( *src ) { *dst++ = *src++; }
|
||||
*dst = 0;
|
||||
|
@ -16,8 +16,8 @@ morph_string_as_ascii_to_utf8 ()
|
|||
morph_string_as_utf8_to_ascii ()
|
||||
<Seq Char~Unicode>
|
||||
~ UTF-8
|
||||
~ <Seq~<ValueTerminated 0> x86.UInt8>
|
||||
--> <Seq ~ <ValueTerminated 0> Char~Ascii~x86.UInt8>
|
||||
~ <Seq~<ValueTerminated 0> native.UInt8>
|
||||
--> <Seq ~ <ValueTerminated 0> Char~Ascii~native.UInt8>
|
||||
```
|
||||
while( *src ) {
|
||||
if( *src < 128 ) {
|
||||
|
@ -32,10 +32,10 @@ morph_string_as_utf8_to_ascii ()
|
|||
```
|
||||
|
||||
morph_string_as_ascii_to_utf32 ()
|
||||
<Seq ~ <ValueTerminated 0> Char~Ascii~x86.UInt8>
|
||||
<Seq ~ <ValueTerminated 0> Char~Ascii~native.UInt8>
|
||||
--> <Seq Char~Unicode>
|
||||
~ UTF-32LE
|
||||
~ <Seq~<ValueTerminated 0> x86.UInt32>
|
||||
~ <Seq~<ValueTerminated 0> native.UInt32>
|
||||
```
|
||||
while( *src ) { *dst++ = *src++; }
|
||||
*dst = 0;
|
||||
|
@ -46,11 +46,11 @@ morph_string_as_utf8_to_utf32 ()
|
|||
|
||||
<Seq Char~Unicode>
|
||||
~ UTF-8
|
||||
~ <Seq~<ValueTerminated 0> x86.UInt8>
|
||||
~ <Seq~<ValueTerminated 0> native.UInt8>
|
||||
|
||||
--> <Seq Char~Unicode>
|
||||
~ UTF-32LE
|
||||
~ <Seq~<ValueTerminated 0> x86.UInt32>
|
||||
~ <Seq~<ValueTerminated 0> native.UInt32>
|
||||
|
||||
```
|
||||
bool has_multibyte = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue