Back to index

php5  5.3.10
Functions
mbfl_string.c File Reference
#include "mbfl_allocators.h"
#include "mbfl_string.h"

Go to the source code of this file.

Functions

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

Function Documentation

void mbfl_string_clear ( mbfl_string string)

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:

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:

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: