Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Typedefs | Functions
char.cpp File Reference
#include <rw_char.h>
#include <rw_printf.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for char.cpp:

Go to the source code of this file.

Macros

#define _RWSTD_TEST_SRC
 

Typedefs

typedef unsigned char UChar
 

Functions

_TEST_EXPORT char * rw_widen (char *dst, const char *src, size_t len)
 
_TEST_EXPORT char * rw_expand (char *dst, const char *src, size_t src_len, size_t *dst_len)
 
_TEST_EXPORT char * rw_narrow (char *dst, const char *src, size_t len)
 
_TEST_EXPORT size_t rw_match (const char *s1, const char *s2, size_t len)
 
_TEST_EXPORT wchar_t * rw_widen (wchar_t *dst, const char *src, size_t len)
 
_TEST_EXPORT wchar_t * rw_expand (wchar_t *dst, const char *src, size_t src_len, size_t *dst_len)
 
_TEST_EXPORT char * rw_narrow (char *dst, const wchar_t *src, size_t len)
 
_TEST_EXPORT size_t rw_match (const char *s1, const wchar_t *s2, size_t len)
 
_TEST_EXPORT UserChar * rw_widen (UserChar *dst, const char *src, size_t len)
 
_TEST_EXPORT UserChar * rw_expand (UserChar *dst, const char *src, size_t src_len, size_t *dst_len)
 
_TEST_EXPORT char * rw_narrow (char *dst, const UserChar *src, size_t len)
 
_TEST_EXPORT size_t rw_match (const char *s1, const UserChar *s2, size_t len)
 

Macro Definition Documentation

◆ _RWSTD_TEST_SRC

#define _RWSTD_TEST_SRC

char.cpp - helpers for user-defined character type and its traits

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 28 of file char.cpp.

Typedef Documentation

◆ UChar

typedef unsigned char UChar

Definition at line 40 of file char.cpp.

Function Documentation

◆ rw_expand() [1/3]

_TEST_EXPORT char * rw_expand ( char *  dst,
const char *  src,
size_t  src_len,
size_t *  dst_len 
)

Definition at line 754 of file char.cpp.

◆ rw_expand() [2/3]

_TEST_EXPORT UserChar * rw_expand ( UserChar *  dst,
const char *  src,
size_t  src_len,
size_t *  dst_len 
)

Definition at line 1033 of file char.cpp.

◆ rw_expand() [3/3]

_TEST_EXPORT wchar_t * rw_expand ( wchar_t *  dst,
const char *  src,
size_t  src_len,
size_t *  dst_len 
)

Definition at line 884 of file char.cpp.

◆ rw_match() [1/3]

_TEST_EXPORT size_t rw_match ( const char *  s1,
const char *  s2,
size_t  len 
)

Definition at line 773 of file char.cpp.

◆ rw_match() [2/3]

_TEST_EXPORT size_t rw_match ( const char *  s1,
const UserChar *  s2,
size_t  len 
)

Definition at line 1082 of file char.cpp.

◆ rw_match() [3/3]

_TEST_EXPORT size_t rw_match ( const char *  s1,
const wchar_t *  s2,
size_t  len 
)

Definition at line 933 of file char.cpp.

◆ rw_narrow() [1/3]

_TEST_EXPORT char * rw_narrow ( char *  dst,
const char *  src,
size_t  len 
)

Definition at line 765 of file char.cpp.

◆ rw_narrow() [2/3]

_TEST_EXPORT char * rw_narrow ( char *  dst,
const UserChar *  src,
size_t  len 
)

Definition at line 1044 of file char.cpp.

◆ rw_narrow() [3/3]

_TEST_EXPORT char * rw_narrow ( char *  dst,
const wchar_t *  src,
size_t  len 
)

Definition at line 895 of file char.cpp.

◆ rw_widen() [1/3]

_TEST_EXPORT char * rw_widen ( char *  dst,
const char *  src,
size_t  len 
)

Definition at line 501 of file char.cpp.

◆ rw_widen() [2/3]

_TEST_EXPORT UserChar * rw_widen ( UserChar *  dst,
const char *  src,
size_t  len 
)

Definition at line 999 of file char.cpp.

◆ rw_widen() [3/3]

_TEST_EXPORT wchar_t * rw_widen ( wchar_t *  dst,
const char *  src,
size_t  len 
)

Definition at line 851 of file char.cpp.