VirtualBox

Changeset 28903 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Apr 29, 2010 2:58:12 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60847
Message:

IPRT: iconv cache.

Location:
trunk/src/VBox/Runtime/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/thread.cpp

    r28800 r28903  
    4949#include "internal/sched.h"
    5050#include "internal/process.h"
     51#ifdef RT_WITH_ICONV_CACHE
     52# include "internal/string.h"
     53#endif
    5154
    5255
     
    354357#ifdef IN_RING3
    355358        rtLockValidatorInitPerThread(&pThread->LockValidator);
     359#endif
     360#ifdef RT_WITH_ICONV_CACHE
     361        rtStrIconvCacheInit(pThread);
    356362#endif
    357363        int rc = RTSemEventMultiCreate(&pThread->EventUser);
     
    575581
    576582    rtLockValidatorDeletePerThread(&pThread->LockValidator);
     583#endif
     584#ifdef RT_WITH_ICONV_CACHE
     585    rtStrIconvCacheDestroy(pThread);
    577586#endif
    578587    ASMAtomicXchgU32(&pThread->u32Magic, RTTHREADINT_MAGIC_DEAD);
  • trunk/src/VBox/Runtime/common/string/utf-8-case.cpp

    r28800 r28903  
    109109    }
    110110
    111     /* Hit some bad encoding, continue in case insensitive mode. */
     111    /* Hit some bad encoding, continue in case sensitive mode. */
    112112    return RTStrCmp(psz1, psz2);
    113113}
  • trunk/src/VBox/Runtime/common/string/utf-8.cpp

    r28800 r28903  
    5252 *                          on success (cch = cb again). Optional.
    5353 */
    54 static int rtUtf8Length(const char *psz, size_t cch, size_t *pcuc, size_t *pcchActual)
     54int rtUtf8Length(const char *psz, size_t cch, size_t *pcuc, size_t *pcchActual)
    5555{
    5656    const unsigned char *puch = (const unsigned char *)psz;
     
    316316    }
    317317    return rc;
    318 
    319 
    320     return RTStrUniLenEx(psz, cch, &cCpsIgnored);
    321318}
    322319RT_EXPORT_SYMBOL(RTStrValidateEncodingEx);
Note: See TracChangeset for help on using the changeset viewer.

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