Back to index

php5  5.3.10
Classes | Typedefs | Functions
mbfl_string.h File Reference
#include "mbfl_defs.h"
#include "mbfl_encoding.h"
#include "mbfl_language.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _mbfl_string

Typedefs

typedef struct _mbfl_string mbfl_string

Functions

MBFLAPI void mbfl_string_init (mbfl_string *string)
MBFLAPI void mbfl_string_init_set (mbfl_string *string, mbfl_language_id no_language, mbfl_encoding_id no_encoding)
MBFLAPI void mbfl_string_clear (mbfl_string *string)

Class Documentation

struct _mbfl_string

Definition at line 41 of file mbfl_string.h.


Typedef Documentation

typedef struct _mbfl_string mbfl_string

Function Documentation

Definition at line 68 of file mbfl_string.c.

{
       if (string) {
              if (string->val != (unsigned char*)NULL) {
                     mbfl_free(string->val);
              }
              string->val = (unsigned char*)NULL;
              string->len = 0;
       }
}

Here is the caller graph for this function:

MBFLAPI void mbfl_string_init ( mbfl_string string)

Definition at line 46 of file mbfl_string.c.

{
       if (string) {
              string->no_language = mbfl_no_language_uni;
              string->no_encoding = mbfl_no_encoding_pass;
              string->val = (unsigned char*)NULL;
              string->len = 0;
       }
}

Here is the caller graph for this function:

MBFLAPI void mbfl_string_init_set ( mbfl_string string,
mbfl_language_id  no_language,
mbfl_encoding_id  no_encoding 
)

Definition at line 57 of file mbfl_string.c.

{
       if (string) {
              string->no_language = no_language;
              string->no_encoding = no_encoding;
              string->val = (unsigned char*)NULL;
              string->len = 0;
       }
}

Here is the caller graph for this function: