60 bool CheckAsFollowingBytes(
Int32 HowMany,
const char* FirstChar)
62 for(
Int32 Count = 1; HowMany>Count; Count++)
74 for(
int Counter=31; Counter>=0; Counter--)
76 if ( ((Counter+1)%8)==0 && Counter!=31)
78 if ( (1<<Counter) & IntToPrint )
89 if( (*CurrentCharacter &
High1Bit) == 0)
92 char Results = *CurrentCharacter;
96 for(
Int32 Counter=2; Counter<7; Counter++)
100 if( CheckAsFollowingBytes(Counter-1, CurrentCharacter) )
104 for(
Int32 Remains = 1; Remains<Counter; Remains++)
105 { Results |= (CurrentCharacter[Remains] &
Low6Bit) << (6*(Counter-Remains-1)); }
129 char Ascii = (char)ByteSequence;
130 Destination[0]=Ascii;
145 char* Bytes = (
char*)&Results;
146 Destination[0]=Bytes[1];
147 Destination[1]=Bytes[0];
161 char* Bytes = (
char*)&Results;
162 Destination[0]=Bytes[2];
163 Destination[1]=Bytes[1];
164 Destination[2]=Bytes[0];
179 char* Bytes = (
char*)&Results;
180 Destination[0]=Bytes[3];
181 Destination[1]=Bytes[2];
182 Destination[2]=Bytes[1];
183 Destination[3]=Bytes[0];