Home | History | Annotate | Download | only in unicode

Lines Matching full:data

26  * \brief C API: Data loading interface
28 * <h2>Information about data loading interface</h2>
30 * This API is used to find and efficiently load data for ICU and applications
31 * using ICU. It provides an abstract interface that specifies a data type and
32 * name to find and load the data. Normally this API is used by other ICU APIs
33 * to load required data out of the ICU data library, but it can be used to
34 * load data out of other places.
36 * See the User Guide Data Management chapter.
65 * Alias for standard ICU data
73 * UDataInfo contains the properties about the requested data.
74 * This is meta data.
79 * <p>The platform data property fields help determine if a data
81 * The particular fields are of importance only if the data
82 * is affected by the properties - if there is integer data
86 * functions may reject data based on the value in <code>isBigEndian</code>.
90 * the kind of data, e.g. a converter table.</p>
95 * of the version elements to allow the data memory to
100 * common place to store the source version of the data;
101 * for data from the Unicode character database, this could
114 /* platform data properties */
131 /** data format identifier
144 /* API for reading data -----------------------------------------------------*/
147 * Forward declaration of the data memory type.
155 * @param type The type of the data as passed into <code>udata_openChoice()</code>.
157 * @param name The name of the data as passed into <code>udata_openChoice()</code>.
159 * of data that has been loaded and will be returned
162 * @return TRUE if the current data memory is acceptable
174 * except that any data that matches the type and name
177 * finding of the data in the file system.
178 * <code>NULL</code> for ICU data.
179 * @param type A string that specifies the type of data to be loaded.
183 * @param name A string that specifies the name of the data.
185 * @return A pointer (handle) to a data memory object, or <code>NULL</code>
187 * to get a pointer to the actual data.
197 * Data loading function.
198 * This function is used to find and load efficiently data for
200 * It provides an abstract interface that allows to specify a data
201 * type and name to find and load the data.
207 * Several or all data items may be combined into one entity
210 * <p>The data is always preceded by a header that includes
213 * sure that the data is useful. It may be called several times if it
214 * rejects the data and there is more than one location with data
217 * <p>If <code>path==NULL</code>, then ICU data is loaded.
219 * The basename is used as the data package name, and the directory is
220 * logically prepended to the ICU data directory string.</p>
222 * <p>For details about ICU data loading see the User Guide
223 * Data Management chapter. (http://icu-project.org/userguide/icudata.html)</p>
226 * finding of the data in the file system.
227 * <code>NULL</code> for ICU data.
228 * @param type A string that specifies the type of data to be loaded.
232 * @param name A string that specifies the name of the data.
233 * @param isAcceptable This function is called to verify that loaded data
235 * for all data items, then <code>udata_openChoice()</code>
239 * @return A pointer (handle) to a data memory object, or <code>NULL</code>
241 * to get a pointer to the actual data.
250 * Close the data memory.
252 * release resources associated with this data memory.
253 * @param pData The pointer to data memory object
260 * Get the pointer to the actual data inside the data memory.
261 * The data is read-only.
262 * @param pData The pointer to data memory object
269 * Get the information from the data memory header.
271 * platform data properties etc. which is not part of
272 * the data itself and can therefore not be accessed
275 * @param pData pointer to the data memory object
281 * in the data memory object. If this structure is smaller than
290 * This function bypasses the normal ICU data loading process and
291 * allows you to force ICU's system data to come out of a user-specified
294 * The format of this data is that of the icu common data file, as is
297 * data, or (with the appropriate link options) pass in the pointer to
298 * the data that has been loaded from a dll by the operating system,
307 * Warning: ICU must NOT have even attempted to access its data yet
315 * This function has no effect on application (non ICU) data. See udata_setAppData()
316 * for similar functionality for application data.
318 * @param data pointer to ICU common data
324 udata_setCommonData(const void *data, UErrorCode *err);
328 * This function bypasses the normal ICU data loading process for application-specific
329 * data and allows you to force the it to come out of a user-specified
332 * The format of this data is that of the icu common data file, like 'icudt26l.dat'
334 * The application must read in or otherwise construct an image of the data and then
339 * data with the specifed path that has already been opened, or
345 * to (open) this data
346 * @param data pointer to the data
352 udata_setAppData(const char *packageName, const void *data, UErrorCode *err);
360 /** ICU looks for data in single files first, then in packages. (default) */
362 /** ICU only loads data from packages, not from single files. */
364 /** ICU loads data from packages first, and only from single files
365 if the data cannot be found in a package. */
367 /** ICU does not access the file system for data loading. */
375 * This function may be called to control how ICU loads data. It must be called
376 * before any ICU data is loaded, including application data loaded with ures/ResourceBundle or
378 * The results of calling it while other threads are loading data are undefined.