ICU 4.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
usprep.h
Go to the documentation of this file.
1 /*
2  *******************************************************************************
3  *
4  * Copyright (C) 2003-2009, International Business Machines
5  * Corporation and others. All Rights Reserved.
6  *
7  *******************************************************************************
8  * file name: usprep.h
9  * encoding: US-ASCII
10  * tab size: 8 (not used)
11  * indentation:4
12  *
13  * created on: 2003jul2
14  * created by: Ram Viswanadha
15  */
16 
17 #ifndef __USPREP_H__
18 #define __USPREP_H__
19 
25 #include "unicode/utypes.h"
58 #if !UCONFIG_NO_IDNA
59 
60 #include "unicode/parseerr.h"
61 
67 
68 
75 #define USPREP_DEFAULT 0x0000
76 
83 #define USPREP_ALLOW_UNASSIGNED 0x0001
84 
91 typedef enum UStringPrepProfileType {
164 
181 usprep_open(const char* path,
182  const char* fileName,
183  UErrorCode* status);
184 
198  UErrorCode* status);
199 
205 U_STABLE void U_EXPORT2
207 
208 
240  const UChar* src, int32_t srcLength,
241  UChar* dest, int32_t destCapacity,
242  int32_t options,
243  UParseError* parseError,
244  UErrorCode* status );
245 
246 
247 #endif /* #if !UCONFIG_NO_IDNA */
248 
249 #endif
RFC3530 nfs4_mixed_prep for suffix.
Definition: usprep.h:121
RFC3530 nfs4_mixed_prep for prefix.
Definition: usprep.h:116
RFC4013 SASLprep.
Definition: usprep.h:146
struct UStringPrepProfile UStringPrepProfile
StringPrep API implements the StingPrep framework as described by RFC 3454.
Definition: usprep.h:66
UStringPrepProfile * usprep_openByType(UStringPrepProfileType type, UErrorCode *status)
Creates a StringPrep profile for the specified profile type.
int32_t usprep_prepare(const UStringPrepProfile *prep, const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)
Prepare the input buffer for use in applications with the given profile.
RFC3530 nfs4_cs_prep.
Definition: usprep.h:101
RFC4011 Policy MIB Stringprep.
Definition: usprep.h:141
RFC3530 nfs4_cs_prep with case insensitive option.
Definition: usprep.h:106
void usprep_close(UStringPrepProfile *profile)
Closes the profile.
RFC3530 nfs4_cis_prep.
Definition: usprep.h:111
#define U_EXPORT2
Definition: platform.h:338
RFC4518 LDAP.
Definition: usprep.h:156
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
Definition: umachine.h:299
C API: Parse Error Information.
UStringPrepProfile * usprep_open(const char *path, const char *fileName, UErrorCode *status)
Creates a StringPrep profile from the data file.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:593
RFC3920 XMPP Nodeprep.
Definition: usprep.h:131
RFC3722 iSCSI.
Definition: usprep.h:126
A UParseError struct is used to returned detailed information about parsing errors.
Definition: parseerr.h:56
Basic definitions for ICU, for both C and C++ APIs.
RFC4505 trace.
Definition: usprep.h:151
RFC3920 XMPP Resourceprep.
Definition: usprep.h:136
#define U_DRAFT
This is used to declare a function as a draft public ICU C API.
Definition: umachine.h:119
UStringPrepProfileType
enums for the standard stringprep profile types supported by usprep_openByType.
Definition: usprep.h:91
RFC3491 Nameprep.
Definition: usprep.h:96
RFC4518 LDAP for case ignore, numeric and stored prefix matching rules.
Definition: usprep.h:162
signed int int32_t
Define 64 bit limits.
Definition: pwin32.h:143
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:117