FireBirdLib - Topfield TMS PVR TAP Programming Library
FMUC_FindUTF8Start.c
Go to the documentation of this file.
1#include "FBLib_FontManager.h"
2
3byte *FMUC_FindUTF8Start(byte *p)
4{
6
7 if(p == NULL)
8 {
9 TRACEEXIT();
10 return NULL;
11 }
12
13 //Find the first byte of a multibyte UTF-8 character
14 while((*p & 0xc0) == 0x80) p--;
15
16 TRACEEXIT();
17 return p;
18}
byte * FMUC_FindUTF8Start(byte *p)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243