X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..729e4ab9bc6618bc3d8a898e575df7f4019e29ca:/icuSources/tools/toolutil/writesrc.h diff --git a/icuSources/tools/toolutil/writesrc.h b/icuSources/tools/toolutil/writesrc.h index 613ee9d7..4519cf18 100644 --- a/icuSources/tools/toolutil/writesrc.h +++ b/icuSources/tools/toolutil/writesrc.h @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2005, International Business Machines +* Copyright (C) 2005-2010, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -21,14 +21,22 @@ #include #include "unicode/utypes.h" -#include "utrie.h" +#include "utrie2.h" /** * Create a source text file and write a header comment with the ICU copyright. + * Writes a C/Java-style comment. */ U_CAPI FILE * U_EXPORT2 usrc_create(const char *path, const char *filename); +/** + * Create a source text file and write a header comment with the ICU copyright. + * Writes the comment with # lines, as used in scripts and text data. + */ +U_CAPI FILE * U_EXPORT2 +usrc_createTextData(const char *path, const char *filename); + /** * Write the contents of an array of 8/16/32-bit words. * The prefix and postfix are optional (can be NULL) and are written first/last. @@ -43,28 +51,26 @@ usrc_writeArray(FILE *f, const char *postfix); /** - * Calls usrc_writeArray() for the index and data arrays of a runtime UTrie. - * Only the index array is written for a 16-bit UTrie. In this case, dataPrefix + * Calls usrc_writeArray() for the index and data arrays of a frozen UTrie2. + * Only the index array is written for a 16-bit UTrie2. In this case, dataPrefix * is ignored and can be NULL. */ U_CAPI void U_EXPORT2 -usrc_writeUTrieArrays(FILE *f, - const char *indexPrefix, const char *dataPrefix, - const UTrie *pTrie, - const char *postfix); +usrc_writeUTrie2Arrays(FILE *f, + const char *indexPrefix, const char *dataPrefix, + const UTrie2 *pTrie, + const char *postfix); /** - * Writes the UTrie struct values. + * Writes the UTrie2 struct values. * The {} and declaration etc. need to be included in prefix/postfix or * printed before and after the array contents. - * If getFoldingOffsetName==NULL then "utrie_defaultGetFoldingOffset" is printed. */ U_CAPI void U_EXPORT2 -usrc_writeUTrieStruct(FILE *f, - const char *prefix, - const UTrie *pTrie, - const char *indexName, const char *dataName, - const char *getFoldingOffsetName, - const char *postfix); +usrc_writeUTrie2Struct(FILE *f, + const char *prefix, + const UTrie2 *pTrie, + const char *indexName, const char *dataName, + const char *postfix); #endif