VirtualBox

Ignore:
Timestamp:
Apr 29, 2010 2:58:12 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: iconv cache.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/string.h

    r28800 r28903  
    4848#endif
    4949
    50 size_t rtstrFormatRt(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs, int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize);
    51 size_t rtstrFormatType(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs, int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize);
     50size_t rtstrFormatRt(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs,
     51                     int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize);
     52size_t rtstrFormatType(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs,
     53                       int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize);
     54
     55#ifdef RT_WITH_ICONV_CACHE
     56void rtStrIconvCacheInit(struct RTTHREADINT *pThread);
     57void rtStrIconvCacheDestroy(struct RTTHREADINT *pThread);
     58#endif
     59
     60/**
     61 * Indexes into RTTHREADINT::ahIconvs
     62 */
     63typedef enum RTSTRICONV
     64{
     65    /** UTF-8 to the locale codeset (LC_CTYPE). */
     66    RTSTRICONV_UTF8_TO_LOCALE = 0,
     67    /** The locale codeset (LC_CTYPE) to UTF-8. */
     68    RTSTRICONV_LOCALE_TO_UTF8,
     69    /** UTF-8 to the filesystem codeset - if different from the locale codeset. */
     70    RTSTRICONV_UTF8_TO_FS,
     71    /** The filesystem codeset to UTF-8. */
     72    RTSTRICONV_FS_TO_UTF8,
     73    /** The end of the valid indexes. */
     74    RTSTRICONV_END
     75} RTSTRICONV;
     76
     77int rtStrConvert(const char *pchInput, size_t cchInput, const char *pszInputCS,
     78                 char **ppszOutput, size_t cbOutput, const char *pszOutputCS,
     79                 unsigned cFactor, RTSTRICONV enmCacheIdx);
     80const char *rtStrGetLocaleCodeset(void);
     81int rtUtf8Length(const char *psz, size_t cch, size_t *pcuc, size_t *pcchActual);
    5282
    5383RT_C_DECLS_END
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette