php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
grapheme_util.c File Reference
#include <php.h>
#include "grapheme.h"
#include "grapheme_util.h"
#include "intl_common.h"
#include <unicode/utypes.h>
#include <unicode/ucol.h>
#include <unicode/ustring.h>
#include <unicode/ubrk.h>
#include <unicode/usearch.h>

Go to the source code of this file.

Macros

#define STRPOS_CHECK_STATUS(status, error)
 

Functions

void grapheme_close_global_iterator (void)
 
void grapheme_substr_ascii (char *str, size_t str_len, int32_t f, int32_t l, char **sub_str, int32_t *sub_str_len)
 
int32_t grapheme_strpos_utf16 (char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int32_t *puchar_pos, int f_ignore_case, int last)
 
zend_long grapheme_ascii_check (const unsigned char *day, size_t len)
 
int32_t grapheme_split_string (const UChar *text, int32_t text_length, int boundary_array[], int boundary_array_len)
 
int32_t grapheme_count_graphemes (UBreakIterator *bi, UChar *string, int32_t string_len)
 
int32_t grapheme_get_haystack_offset (UBreakIterator *bi, int32_t offset)
 
zend_long grapheme_strrpos_ascii (char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset)
 
UBreakIterator * grapheme_get_break_iterator (void *stack_buffer, UErrorCode *status)
 

Macro Definition Documentation

◆ STRPOS_CHECK_STATUS

#define STRPOS_CHECK_STATUS ( status,
error )
Value:
if ( U_FAILURE( (status) ) ) { \
intl_error_set_code( NULL, (status) ); \
intl_error_set_custom_msg( NULL, (error), 0 ); \
ret_pos = -1; \
goto finish; \
}
DNS_STATUS status
Definition dns_win32.c:49
error($message)
Definition ext_skel.php:22
#define NULL
Definition gdcache.h:45

Definition at line 87 of file grapheme_util.c.

Function Documentation

◆ grapheme_ascii_check()

zend_long grapheme_ascii_check ( const unsigned char * day,
size_t len )

Definition at line 215 of file grapheme_util.c.

◆ grapheme_close_global_iterator()

void grapheme_close_global_iterator ( void )

Definition at line 37 of file grapheme_util.c.

◆ grapheme_count_graphemes()

int32_t grapheme_count_graphemes ( UBreakIterator * bi,
UChar * string,
int32_t string_len )

Definition at line 267 of file grapheme_util.c.

◆ grapheme_get_break_iterator()

UBreakIterator * grapheme_get_break_iterator ( void * stack_buffer,
UErrorCode * status )

Definition at line 371 of file grapheme_util.c.

◆ grapheme_get_haystack_offset()

int32_t grapheme_get_haystack_offset ( UBreakIterator * bi,
int32_t offset )

Definition at line 291 of file grapheme_util.c.

◆ grapheme_split_string()

int32_t grapheme_split_string ( const UChar * text,
int32_t text_length,
int boundary_array[],
int boundary_array_len )

Definition at line 229 of file grapheme_util.c.

◆ grapheme_strpos_utf16()

int32_t grapheme_strpos_utf16 ( char * haystack,
size_t haystack_len,
char * needle,
size_t needle_len,
int32_t offset,
int32_t * puchar_pos,
int f_ignore_case,
int last )

Definition at line 97 of file grapheme_util.c.

◆ grapheme_strrpos_ascii()

zend_long grapheme_strrpos_ascii ( char * haystack,
size_t haystack_len,
char * needle,
size_t needle_len,
int32_t offset )

Definition at line 331 of file grapheme_util.c.

◆ grapheme_substr_ascii()

void grapheme_substr_ascii ( char * str,
size_t str_len,
int32_t f,
int32_t l,
char ** sub_str,
int32_t * sub_str_len )

Definition at line 48 of file grapheme_util.c.