~ubuntu-branches/ubuntu/gutsy/icu/gutsy-updates

« back to all changes in this revision

Viewing changes to source/common/ucnv_io.h

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 **********************************************************************
3
 
 *   Copyright (C) 1999-2001, International Business Machines
4
 
 *   Corporation and others.  All Rights Reserved.
5
 
 **********************************************************************
6
 
 *
7
 
 *
8
 
 *  ucnv_io.h:
9
 
 *  defines  variables and functions pertaining to file access, and name resolution
10
 
 *  aspect of the library
11
 
 */
12
 
 
13
 
#ifndef UCNV_IO_H
14
 
#define UCNV_IO_H
15
 
 
16
 
#include "unicode/utypes.h"
17
 
 
18
 
/**
19
 
 * Map a converter alias name to a canonical converter name.
20
 
 * The alias is searched for case-insensitively, the converter name
21
 
 * is returned in mixed-case.
22
 
 * Returns NULL if the alias is not found.
23
 
 */
24
 
U_CFUNC const char *
25
 
ucnv_io_getConverterName(const char *alias, UErrorCode *pErrorCode);
26
 
 
27
 
/**
28
 
 * Search case-insensitively for a converter alias and set aliases to
29
 
 * a pointer to the list of aliases for the actual converter.
30
 
 * The first "alias" is the canonical converter name.
31
 
 * The aliases are stored consecutively, in mixed case, each NUL-terminated.
32
 
 * There are as many strings in this list as the return value specifies.
33
 
 * Returns the number of aliases including the canonical converter name,
34
 
 * or 0 if the alias is not found.
35
 
 */
36
 
U_CFUNC uint16_t
37
 
ucnv_io_getAliases(const char *alias, const char **aliases, UErrorCode *pErrorCode);
38
 
 
39
 
/**
40
 
 * Search case-insensitively for a converter alias and return
41
 
 * the (n)th alias.
42
 
 * Returns NULL if the alias is not found.
43
 
 */
44
 
U_CFUNC const char *
45
 
ucnv_io_getAlias(const char *alias, uint16_t n, UErrorCode *pErrorCode);
46
 
 
47
 
/**
48
 
 * Return the number of all standard names.
49
 
 */
50
 
U_CFUNC uint16_t
51
 
ucnv_io_countStandards(UErrorCode *pErrorCode);
52
 
 
53
 
/**
54
 
 * Return the number of all converter names.
55
 
 */
56
 
U_CFUNC uint16_t
57
 
ucnv_io_countAvailableConverters(UErrorCode *pErrorCode);
58
 
 
59
 
/**
60
 
 * Return the (n)th converter name in mixed case, or NULL
61
 
 * if there is none (typically, if the data cannot be loaded).
62
 
 * 0<=index<ucnv_io_countAvailableConverters().
63
 
 */
64
 
U_CFUNC const char *
65
 
ucnv_io_getAvailableConverter(uint16_t n, UErrorCode *pErrorCode);
66
 
 
67
 
/**
68
 
 * Fill an array const char *aliases[ucnv_io_countAvailableConverters()]
69
 
 * with pointers to all converter names in mixed-case.
70
 
 */
71
 
U_CFUNC void
72
 
ucnv_io_fillAvailableConverters(const char **aliases, UErrorCode *pErrorCode);
73
 
 
74
 
/**
75
 
 * Return the number of all aliases (and converter names).
76
 
 */
77
 
U_CFUNC uint16_t
78
 
ucnv_io_countAvailableAliases(UErrorCode *pErrorCode);
79
 
 
80
 
/**
81
 
 * Return the (n)th alias or converter name in mixed case, or NULL
82
 
 * if there is none (typically, if the data cannot be loaded).
83
 
 * 0<=index<ucnv_io_countAvailableAliases().
84
 
 */
85
 
U_CFUNC const char *
86
 
ucnv_io_getAvailableAlias(uint16_t n, UErrorCode *pErrorCode);
87
 
 
88
 
/**
89
 
 * Fill an array const char *aliases[ucnv_io_countAvailableAliases()]
90
 
 * with pointers to all aliases and converter names in mixed-case.
91
 
 */
92
 
U_CFUNC void
93
 
ucnv_io_fillAvailableAliases(const char **aliases, UErrorCode *pErrorCode);
94
 
 
95
 
/**
96
 
 * Get the name of the default converter.
97
 
 * This name is already resolved by <code>ucnv_io_getConverterName()</code>.
98
 
 */
99
 
U_CFUNC const char *
100
 
ucnv_io_getDefaultConverterName(void);
101
 
 
102
 
/**
103
 
 * Set the name of the default converter.
104
 
 */
105
 
U_CFUNC void
106
 
ucnv_io_setDefaultConverterName(const char *name);
107
 
 
108
 
#endif /* _UCNV_IO */
109
 
 
110
 
/*
111
 
 * Hey, Emacs, please set the following:
112
 
 *
113
 
 * Local Variables:
114
 
 * indent-tabs-mode: nil
115
 
 * End:
116
 
 *
117
 
 */