2003-02-28 21:35:25 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
2003-05-06 01:37:52 +00:00
|
|
|
* Copyright (C) 2003, International Business Machines
|
2003-02-28 21:35:25 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
2003-05-06 01:37:52 +00:00
|
|
|
* file name: sprpimpl.h
|
2003-02-28 21:35:25 +00:00
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 2003feb1
|
|
|
|
* created by: Ram Viswanadha
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SPRPIMPL_H
|
|
|
|
#define SPRPIMPL_H
|
|
|
|
|
2003-05-06 01:37:52 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_IDNA
|
|
|
|
|
2003-02-28 21:35:25 +00:00
|
|
|
enum{
|
|
|
|
UIDNA_NO_VALUE = 0x0000 ,
|
|
|
|
UIDNA_UNASSIGNED = 0x0001 ,
|
|
|
|
UIDNA_PROHIBITED = 0x0002 ,
|
|
|
|
UIDNA_MAP_NFKC = 0x0003 ,
|
2003-03-01 00:42:53 +00:00
|
|
|
UIDNA_LABEL_SEPARATOR = 0x0004
|
2003-02-28 21:35:25 +00:00
|
|
|
};
|
|
|
|
enum{
|
|
|
|
_IDNA_LENGTH_IN_MAPPING_TABLE = 0x0003 /*11*/
|
|
|
|
};
|
|
|
|
/* indexes[] value names */
|
|
|
|
enum {
|
|
|
|
_IDNA_INDEX_TRIE_SIZE, /* number of bytes in normalization trie */
|
|
|
|
_IDNA_INDEX_MAPPING_DATA_SIZE, /* The array that contains the mapping */
|
|
|
|
_IDNA_INDEX_TOP=3 /* changing this requires a new formatVersion */
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
2003-05-19 21:06:50 +00:00
|
|
|
_IDNA_MAPPING_DATA_SIZE = 2000,
|
2003-03-12 23:17:56 +00:00
|
|
|
_IDNA_MAP_TO_NOTHING = 0x7FF
|
2003-02-28 21:35:25 +00:00
|
|
|
};
|
|
|
|
|
2003-02-28 22:17:06 +00:00
|
|
|
|
2003-02-28 21:35:25 +00:00
|
|
|
|
|
|
|
/* error codes for prototyping
|
|
|
|
#define U_IDNA_ERROR_START U_ERROR_LIMIT
|
|
|
|
#define U_IDNA_PROHIBITED_CODEPOINT_FOUND_ERROR ((UErrorCode)(U_IDNA_ERROR_START + 1))
|
|
|
|
#define U_IDNA_UNASSIGNED_CODEPOINT_FOUND_ERROR ((UErrorCode)(U_IDNA_ERROR_START + 2))
|
|
|
|
#define U_IDNA_CHECK_BIDI_ERROR ((UErrorCode)(U_IDNA_ERROR_START + 3))
|
|
|
|
#define U_IDNA_STD3_ASCII_RULES_ERROR ((UErrorCode)(U_IDNA_ERROR_START + 4))
|
|
|
|
#define U_IDNA_ACE_PREFIX_ERROR ((UErrorCode)(U_IDNA_ERROR_START + 5))
|
|
|
|
#define U_IDNA_VERIFICATION_ERROR ((UErrorCode)(U_IDNA_ERROR_START + 6))
|
|
|
|
#define U_IDNA_LABEL_TOO_LONG_ERROR ((UErrorCode)(U_IDNA_ERROR_START + 8))
|
|
|
|
*/
|
2003-05-06 01:37:52 +00:00
|
|
|
|
|
|
|
#endif /* #if !UCONFIG_NO_IDNA */
|
|
|
|
|
2003-02-28 21:35:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Hey, Emacs, please set the following:
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
*/
|