open62541 1.3.15
Open source implementation of OPC UA
Loading...
Searching...
No Matches
Macros | Functions
string_escape.h File Reference
#include <open62541/config.h>
#include <string.h>

Go to the source code of this file.

Macros

#define l_isupper(c)   ('A' <= (c) && (c) <= 'Z')
 
#define l_islower(c)   ('a' <= (c) && (c) <= 'z')
 
#define l_isalpha(c)   (l_isupper(c) || l_islower(c))
 
#define l_isdigit(c)   ('0' <= (c) && (c) <= '9')
 
#define l_isxdigit(c)   (l_isdigit(c) || ('A' <= (c) && (c) <= 'F') || ('a' <= (c) && (c) <= 'f'))
 

Functions

int utf8_encode (int32_t codepoint, char *buffer, size_t *size)
 
size_t utf8_check_first (char byte)
 
size_t utf8_check_full (const char *buffer, size_t size, int32_t *codepoint)
 
const char * utf8_iterate (const char *buffer, size_t size, int32_t *codepoint)
 
int utf8_check_string (const char *string, size_t length)
 
int32_t decode_unicode_escape (const char *str)
 

Macro Definition Documentation

◆ l_isupper

#define l_isupper (   c)    ('A' <= (c) && (c) <= 'Z')

Locale independent versions of isxxx() functions.

Definition at line 19 of file string_escape.h.

◆ l_islower

#define l_islower (   c)    ('a' <= (c) && (c) <= 'z')

Definition at line 20 of file string_escape.h.

◆ l_isalpha

#define l_isalpha (   c)    (l_isupper(c) || l_islower(c))

Definition at line 21 of file string_escape.h.

◆ l_isdigit

#define l_isdigit (   c)    ('0' <= (c) && (c) <= '9')

Definition at line 22 of file string_escape.h.

◆ l_isxdigit

#define l_isxdigit (   c)    (l_isdigit(c) || ('A' <= (c) && (c) <= 'F') || ('a' <= (c) && (c) <= 'f'))

Definition at line 23 of file string_escape.h.

Function Documentation

◆ utf8_encode()

int utf8_encode ( int32_t  codepoint,
char *  buffer,
size_t *  size 
)

◆ utf8_check_first()

size_t utf8_check_first ( char  byte)

◆ utf8_check_full()

size_t utf8_check_full ( const char *  buffer,
size_t  size,
int32_t *  codepoint 
)

◆ utf8_iterate()

const char * utf8_iterate ( const char *  buffer,
size_t  size,
int32_t *  codepoint 
)

◆ utf8_check_string()

int utf8_check_string ( const char *  string,
size_t  length 
)

◆ decode_unicode_escape()

int32_t decode_unicode_escape ( const char *  str)