GNU PROLOG with UTF8 support
Macros | Functions
pl_wchar.c File Reference
#include "pl_wchar.h"
#include <stddef.h>
#include <ctype.h>
Include dependency graph for pl_wchar.c:

Macros

#define CPBITS_2   ((((CHAR32_T)1)<<11)-1)
 
#define CPBITS_3   ((((CHAR32_T)1)<<16)-1)
 
#define CPBITS_4   ((((CHAR32_T)1)<<21)-1)
 
#define CPBITS_5   ((((CHAR32_T)1)<<26)-1)
 

Functions

int contains_wchar (const char *s, int slen)
 
int normalize_pos (int pos, const char *s)
 
int count_wchar_bytes (const char *s, int slen)
 
int count_wchar_bytes_without_slen (const char *s)
 
int count_wchar_bytes_back (const char *s)
 
int get_wchar_bytes (CHAR32_T c)
 
int count_wchars (char *s, int slen)
 
CHAR32_T get_wchar (const char *s, int slen)
 
CHAR32_T get_wchar_without_slen (const char *s)
 
int put_wchar (char *s, int slen, CHAR32_T c)
 
int put_wchar_without_slen (char *s, CHAR32_T c)
 
int put_wchar_eof (char *s, int slen, CHAR32_T c)
 
int fill_wchar (CHAR32_T *cp, int *modep, CHAR32_T c0)
 
int wchar_bytes_of_chars (const char *s, int slen, int chars)
 
int is_wchar_print (CHAR32_T c)
 

Macro Definition Documentation

#define CPBITS_2   ((((CHAR32_T)1)<<11)-1)
#define CPBITS_3   ((((CHAR32_T)1)<<16)-1)
#define CPBITS_4   ((((CHAR32_T)1)<<21)-1)
#define CPBITS_5   ((((CHAR32_T)1)<<26)-1)

Function Documentation

int contains_wchar ( const char *  s,
int  slen 
)
int count_wchar_bytes ( const char *  s,
int  slen 
)

Here is the caller graph for this function:

int count_wchar_bytes_back ( const char *  s)

Here is the caller graph for this function:

int count_wchar_bytes_without_slen ( const char *  s)

Here is the caller graph for this function:

int count_wchars ( char *  s,
int  slen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fill_wchar ( CHAR32_T cp,
int *  modep,
CHAR32_T  c0 
)

Here is the caller graph for this function:

CHAR32_T get_wchar ( const char *  s,
int  slen 
)

Here is the caller graph for this function:

int get_wchar_bytes ( CHAR32_T  c)

Here is the caller graph for this function:

CHAR32_T get_wchar_without_slen ( const char *  s)
int is_wchar_print ( CHAR32_T  c)

Here is the caller graph for this function:

int normalize_pos ( int  pos,
const char *  s 
)
int put_wchar ( char *  s,
int  slen,
CHAR32_T  c 
)

Here is the caller graph for this function:

int put_wchar_eof ( char *  s,
int  slen,
CHAR32_T  c 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int put_wchar_without_slen ( char *  s,
CHAR32_T  c 
)

Here is the caller graph for this function:

int wchar_bytes_of_chars ( const char *  s,
int  slen,
int  chars 
)

Here is the call graph for this function:

Here is the caller graph for this function: