Back to index

php5  5.3.10
Functions
cyr_convert.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 PHP_FUNCTION (convert_cyr_string)

Function Documentation

PHP_FUNCTION ( convert_cyr_string  )

Definition at line 272 of file cyr_convert.c.

{
       char *input, *fr_cs, *to_cs;
       int input_len, fr_cs_len, to_cs_len;
       unsigned char *str;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss", &input, &input_len, &fr_cs, &fr_cs_len, &to_cs, &to_cs_len) == FAILURE) {
              return;
       }

       str = (unsigned char*) estrndup(input, input_len);

       php_convert_cyr_string(str, input_len, fr_cs[0], to_cs[0] TSRMLS_CC);
       RETVAL_STRING((char *)str, 0)
}

Here is the call graph for this function: