Back to index

php5  5.3.10
Defines | Typedefs | Functions
encodings.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define encoding_utf_8   "UTF-8"
#define utf8_get_encoding_id_string(desired_enc)   ((const char*)desired_enc)
#define utf8_get_encoding_id_from_string(id_string)   ((ENCODING_ID)id_string)

Typedefs

typedef const char * ENCODING_ID

Functions

char * utf8_encode (const char *s, int len, int *newlen, ENCODING_ID encoding)
char * utf8_decode (const char *s, int len, int *newlen, ENCODING_ID encoding)

Define Documentation

#define encoding_utf_8   "UTF-8"

Definition at line 38 of file encodings.h.

#define utf8_get_encoding_id_from_string (   id_string)    ((ENCODING_ID)id_string)

Definition at line 41 of file encodings.h.

#define utf8_get_encoding_id_string (   desired_enc)    ((const char*)desired_enc)

Definition at line 40 of file encodings.h.


Typedef Documentation

typedef const char* ENCODING_ID

Definition at line 39 of file encodings.h.


Function Documentation

char* utf8_decode ( const char *  s,
int  len,
int newlen,
ENCODING_ID  encoding 
)

Definition at line 122 of file encodings.c.

{
   return convert(s, len, newlen, "UTF-8", encoding);
}

Here is the call graph for this function:

Here is the caller graph for this function:

char* utf8_encode ( const char *  s,
int  len,
int newlen,
ENCODING_ID  encoding 
)

Definition at line 116 of file encodings.c.

{
   return convert(s, len, newlen, encoding, "UTF-8");
}

Here is the call graph for this function: