PostgreSQL Source Code git master
|
#include "postgres_fe.h"
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wctype.h>
#include "common/unicode_case.h"
#include "common/unicode_category.h"
#include "common/unicode_version.h"
Go to the source code of this file.
Data Structures | |
struct | WordBoundaryState |
Macros | |
#define | BUFSZ 256 |
Typedefs | |
typedef size_t(* | TestFunc) (char *dst, size_t dstsize, const char *src, ssize_t srclen) |
Functions | |
static size_t | initcap_wbnext (void *state) |
static void | test_convert (TestFunc tfunc, const char *test_string, const char *expected) |
static size_t | tfunc_lower (char *dst, size_t dstsize, const char *src, ssize_t srclen) |
static size_t | tfunc_title (char *dst, size_t dstsize, const char *src, ssize_t srclen) |
static size_t | tfunc_upper (char *dst, size_t dstsize, const char *src, ssize_t srclen) |
static size_t | tfunc_fold (char *dst, size_t dstsize, const char *src, ssize_t srclen) |
static void | test_convert_case () |
int | main (int argc, char **argv) |
#define BUFSZ 256 |
Definition at line 29 of file case_test.c.
typedef size_t(* TestFunc) (char *dst, size_t dstsize, const char *src, ssize_t srclen) |
Definition at line 35 of file case_test.c.
|
static |
Definition at line 50 of file case_test.c.
References WordBoundaryState::init, WordBoundaryState::len, WordBoundaryState::offset, pg_u_isalnum(), WordBoundaryState::posix, WordBoundaryState::prev_alnum, WordBoundaryState::str, unicode_utf8len(), and utf8_to_unicode().
Referenced by tfunc_title().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 376 of file case_test.c.
References casemap(), PG_UNICODE_VERSION, printf, and test_convert_case().
|
static |
Definition at line 208 of file case_test.c.
References free, malloc, and printf.
Referenced by test_convert_case().
|
static |
Definition at line 331 of file case_test.c.
References printf, test_convert(), tfunc_fold(), tfunc_lower(), tfunc_title(), and tfunc_upper().
Referenced by main().
|
static |
Definition at line 324 of file case_test.c.
References unicode_strfold().
Referenced by test_convert_case().
|
static |
Definition at line 294 of file case_test.c.
References unicode_strlower().
Referenced by test_convert_case().
|
static |
Definition at line 301 of file case_test.c.
References initcap_wbnext(), WordBoundaryState::str, and unicode_strtitle().
Referenced by test_convert_case().
|
static |
Definition at line 317 of file case_test.c.
References unicode_strupper().
Referenced by test_convert_case().