php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
mbfilter_utf8.c File Reference
#include "mbfilter.h"
#include "mbfilter_utf8.h"
#include "mbfilter_cjk.h"
#include "emoji2uni.h"

Go to the source code of this file.

Macros

#define CK(statement)
 
#define NFLAGS(c)
 

Functions

int mbfl_bisec_srch2 (int w, const unsigned short tbl[], int n)
 
int mbfl_filt_conv_sjis_mobile_flush (mbfl_convert_filter *filter)
 

Variables

const unsigned char mblen_table_utf8 []
 
const mbfl_encoding mbfl_encoding_utf8
 
const struct mbfl_convert_vtbl vtbl_utf8_wchar
 
const struct mbfl_convert_vtbl vtbl_wchar_utf8
 
const mbfl_encoding mbfl_encoding_utf8_docomo
 
const mbfl_encoding mbfl_encoding_utf8_kddi_a
 
const mbfl_encoding mbfl_encoding_utf8_kddi_b
 
const mbfl_encoding mbfl_encoding_utf8_sb
 
const struct mbfl_convert_vtbl vtbl_utf8_docomo_wchar
 
const struct mbfl_convert_vtbl vtbl_wchar_utf8_docomo
 
const struct mbfl_convert_vtbl vtbl_utf8_kddi_a_wchar
 
const struct mbfl_convert_vtbl vtbl_wchar_utf8_kddi_a
 
const struct mbfl_convert_vtbl vtbl_utf8_kddi_b_wchar
 
const struct mbfl_convert_vtbl vtbl_wchar_utf8_kddi_b
 
const struct mbfl_convert_vtbl vtbl_utf8_sb_wchar
 
const struct mbfl_convert_vtbl vtbl_wchar_utf8_sb
 

Macro Definition Documentation

◆ CK

#define CK ( statement)
Value:
do { if ((statement) < 0) return (-1); } while (0)

Definition at line 318 of file mbfilter_utf8.c.

◆ NFLAGS

#define NFLAGS ( c)
Value:
(0x1F1A5+(int)(c))

Definition at line 726 of file mbfilter_utf8.c.

Function Documentation

◆ mbfl_bisec_srch2()

int mbfl_bisec_srch2 ( int w,
const unsigned short tbl[],
int n )
extern

Definition at line 57 of file mbfilter_cjk.c.

◆ mbfl_filt_conv_sjis_mobile_flush()

int mbfl_filt_conv_sjis_mobile_flush ( mbfl_convert_filter * filter)
extern

Definition at line 6388 of file mbfilter_cjk.c.

Variable Documentation

◆ mbfl_encoding_utf8

const mbfl_encoding mbfl_encoding_utf8
Initial value:
= {
"UTF-8",
"UTF-8",
mbfl_encoding_utf8_aliases,
0,
mb_utf8_to_wchar,
mb_wchar_to_utf8,
mb_cut_utf8
}
#define NULL
Definition gdcache.h:45
const struct mbfl_convert_vtbl vtbl_wchar_utf8
const unsigned char mblen_table_utf8[]
const struct mbfl_convert_vtbl vtbl_utf8_wchar
@ mbfl_no_encoding_utf8

Definition at line 139 of file mbfilter_utf8.c.

◆ mbfl_encoding_utf8_docomo

const mbfl_encoding mbfl_encoding_utf8_docomo
Initial value:
= {
"UTF-8-Mobile#DOCOMO",
"UTF-8",
mbfl_encoding_utf8_docomo_aliases,
0,
mb_utf8_docomo_to_wchar,
mb_wchar_to_utf8_docomo,
mb_cut_utf8,
}
const struct mbfl_convert_vtbl vtbl_utf8_docomo_wchar
const struct mbfl_convert_vtbl vtbl_wchar_utf8_docomo
@ mbfl_no_encoding_utf8_docomo

Definition at line 178 of file mbfilter_utf8.c.

◆ mbfl_encoding_utf8_kddi_a

const mbfl_encoding mbfl_encoding_utf8_kddi_a
Initial value:
= {
"UTF-8-Mobile#KDDI-A",
"UTF-8",
0,
mb_utf8_kddi_a_to_wchar,
mb_wchar_to_utf8_kddi_a,
mb_cut_utf8,
}
const struct mbfl_convert_vtbl vtbl_utf8_kddi_a_wchar
const struct mbfl_convert_vtbl vtbl_wchar_utf8_kddi_a
@ mbfl_no_encoding_utf8_kddi_a

Definition at line 193 of file mbfilter_utf8.c.

◆ mbfl_encoding_utf8_kddi_b

const mbfl_encoding mbfl_encoding_utf8_kddi_b
Initial value:
= {
"UTF-8-Mobile#KDDI-B",
"UTF-8",
mbfl_encoding_utf8_kddi_b_aliases,
0,
mb_utf8_kddi_b_to_wchar,
mb_wchar_to_utf8_kddi_b,
mb_cut_utf8,
}
const struct mbfl_convert_vtbl vtbl_utf8_kddi_b_wchar
const struct mbfl_convert_vtbl vtbl_wchar_utf8_kddi_b
@ mbfl_no_encoding_utf8_kddi_b

Definition at line 208 of file mbfilter_utf8.c.

◆ mbfl_encoding_utf8_sb

const mbfl_encoding mbfl_encoding_utf8_sb
Initial value:
= {
"UTF-8-Mobile#SOFTBANK",
"UTF-8",
mbfl_encoding_utf8_sb_aliases,
0,
mb_utf8_sb_to_wchar,
mb_wchar_to_utf8_sb,
mb_cut_utf8,
}
const struct mbfl_convert_vtbl vtbl_utf8_sb_wchar
const struct mbfl_convert_vtbl vtbl_wchar_utf8_sb
@ mbfl_no_encoding_utf8_sb

Definition at line 223 of file mbfilter_utf8.c.

◆ mblen_table_utf8

const unsigned char mblen_table_utf8[]
Initial value:
= {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
}

Definition at line 35 of file mbfilter_utf8.c.

◆ vtbl_utf8_docomo_wchar

const struct mbfl_convert_vtbl vtbl_utf8_docomo_wchar
Initial value:
= {
mbfl_filt_conv_utf8_mobile_wchar,
mbfl_filt_conv_utf8_wchar_flush,
}
void mbfl_filt_conv_common_ctor(mbfl_convert_filter *filter)
@ mbfl_no_encoding_wchar

Definition at line 238 of file mbfilter_utf8.c.

◆ vtbl_utf8_kddi_a_wchar

const struct mbfl_convert_vtbl vtbl_utf8_kddi_a_wchar
Initial value:
= {
mbfl_filt_conv_utf8_mobile_wchar,
mbfl_filt_conv_utf8_wchar_flush,
}

Definition at line 258 of file mbfilter_utf8.c.

◆ vtbl_utf8_kddi_b_wchar

const struct mbfl_convert_vtbl vtbl_utf8_kddi_b_wchar
Initial value:
= {
mbfl_filt_conv_utf8_mobile_wchar,
mbfl_filt_conv_utf8_wchar_flush,
}

Definition at line 278 of file mbfilter_utf8.c.

◆ vtbl_utf8_sb_wchar

const struct mbfl_convert_vtbl vtbl_utf8_sb_wchar
Initial value:
= {
mbfl_filt_conv_utf8_mobile_wchar,
mbfl_filt_conv_utf8_wchar_flush,
}

Definition at line 298 of file mbfilter_utf8.c.

◆ vtbl_utf8_wchar

const struct mbfl_convert_vtbl vtbl_utf8_wchar
Initial value:
= {
mbfl_filt_conv_utf8_wchar,
mbfl_filt_conv_utf8_wchar_flush,
}

Definition at line 154 of file mbfilter_utf8.c.

◆ vtbl_wchar_utf8

const struct mbfl_convert_vtbl vtbl_wchar_utf8
Initial value:
= {
mbfl_filt_conv_wchar_utf8,
}
int mbfl_filt_conv_common_flush(mbfl_convert_filter *filter)

Definition at line 164 of file mbfilter_utf8.c.

◆ vtbl_wchar_utf8_docomo

const struct mbfl_convert_vtbl vtbl_wchar_utf8_docomo
Initial value:
= {
mbfl_filt_conv_wchar_utf8_mobile,
}
int mbfl_filt_conv_sjis_mobile_flush(mbfl_convert_filter *filter)

Definition at line 248 of file mbfilter_utf8.c.

◆ vtbl_wchar_utf8_kddi_a

const struct mbfl_convert_vtbl vtbl_wchar_utf8_kddi_a
Initial value:

Definition at line 268 of file mbfilter_utf8.c.

◆ vtbl_wchar_utf8_kddi_b

const struct mbfl_convert_vtbl vtbl_wchar_utf8_kddi_b
Initial value:

Definition at line 288 of file mbfilter_utf8.c.

◆ vtbl_wchar_utf8_sb

const struct mbfl_convert_vtbl vtbl_wchar_utf8_sb
Initial value:

Definition at line 308 of file mbfilter_utf8.c.