Ignore:
Timestamp:
Jan 10, 2009, 10:48:58 PM (13 years ago)
Author:
charles
Message:

(trunk libT) #1675: better utf8 validation of metainfo name, creator, and comment fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/ConvertUTF.h

    r7654 r7656  
    55#error only libtransmission should #include this header.
    66#endif
     7
     8#include <unistd.h> /* ssize_t */
    79
    810/*
     
    150152Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd);
    151153
     154
     155/* intended to work the same as g_utf8_validate */
     156Boolean tr_utf8_validate( const char * str, ssize_t max_len, const char ** end );
     157
     158
    152159#ifdef __cplusplus
    153160}
Note: See TracChangeset for help on using the changeset viewer.