summaryrefslogtreecommitdiffstats
path: root/libmsi
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-22 13:08:02 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-12-06 20:25:49 +0100
commit6e53401062e3e6e544d86ab83bafb0192ace1515 (patch)
treed00e151646a2e1e875cec26299ff66c567b8ac07 /libmsi
parenta8361b5fd3774ba66dae76a56ba0ebd51c3631e8 (diff)
downloadmsitools-6e53401062e3e6e544d86ab83bafb0192ace1515.tar.gz
msitools-6e53401062e3e6e544d86ab83bafb0192ace1515.tar.xz
msitools-6e53401062e3e6e544d86ab83bafb0192ace1515.zip
remove dependency on Wine wctype runtime
Diffstat (limited to 'libmsi')
-rw-r--r--libmsi/suminfo.c4
-rw-r--r--libmsi/wine/unicode.h94
2 files changed, 2 insertions, 96 deletions
diff --git a/libmsi/suminfo.c b/libmsi/suminfo.c
index 7eb46ec..8205070 100644
--- a/libmsi/suminfo.c
+++ b/libmsi/suminfo.c
@@ -830,7 +830,7 @@ static void parse_filetime( LPCWSTR str, FILETIME *ft )
/* YYYY/MM/DD hh:mm:ss */
- while (isspaceW( *p )) p++;
+ while ( *p == ' ' || *p == '\t' ) p++;
lt.wYear = strtolW( p, &end, 10 );
if (*end != '/') return;
@@ -844,7 +844,7 @@ static void parse_filetime( LPCWSTR str, FILETIME *ft )
if (*end != ' ') return;
p = end + 1;
- while (isspaceW( *p )) p++;
+ while ( *p == ' ' || *p == '\t' ) p++;
lt.wHour = strtolW( p, &end, 10 );
if (*end != ':') return;
diff --git a/libmsi/wine/unicode.h b/libmsi/wine/unicode.h
index 35c6166..444e874 100644
--- a/libmsi/wine/unicode.h
+++ b/libmsi/wine/unicode.h
@@ -112,86 +112,6 @@ extern int snprintfW( WCHAR *str, size_t len, const WCHAR *format, ... );
extern int vsprintfW( WCHAR *str, const WCHAR *format, va_list valist );
extern int vsnprintfW( WCHAR *str, size_t len, const WCHAR *format, va_list valist );
-WINE_UNICODE_INLINE int wine_is_dbcs_leadbyte( const union cptable *table, unsigned char ch )
-{
- return (table->info.char_size == 2) && (table->dbcs.cp2uni_leadbytes[ch]);
-}
-
-WINE_UNICODE_INLINE WCHAR tolowerW( WCHAR ch )
-{
- extern WINE_UNICODE_API const WCHAR wine_casemap_lower[];
- return ch + wine_casemap_lower[wine_casemap_lower[ch >> 8] + (ch & 0xff)];
-}
-
-WINE_UNICODE_INLINE WCHAR toupperW( WCHAR ch )
-{
- extern WINE_UNICODE_API const WCHAR wine_casemap_upper[];
- return ch + wine_casemap_upper[wine_casemap_upper[ch >> 8] + (ch & 0xff)];
-}
-
-/* the character type contains the C1_* flags in the low 12 bits */
-/* and the C2_* type in the high 4 bits */
-WINE_UNICODE_INLINE unsigned short get_char_typeW( WCHAR ch )
-{
- extern WINE_UNICODE_API const unsigned short wine_wctype_table[];
- return wine_wctype_table[wine_wctype_table[ch >> 8] + (ch & 0xff)];
-}
-
-WINE_UNICODE_INLINE int iscntrlW( WCHAR wc )
-{
- return get_char_typeW(wc) & C1_CNTRL;
-}
-
-WINE_UNICODE_INLINE int ispunctW( WCHAR wc )
-{
- return get_char_typeW(wc) & C1_PUNCT;
-}
-
-WINE_UNICODE_INLINE int isspaceW( WCHAR wc )
-{
- return get_char_typeW(wc) & C1_SPACE;
-}
-
-WINE_UNICODE_INLINE int isdigitW( WCHAR wc )
-{
- return get_char_typeW(wc) & C1_DIGIT;
-}
-
-WINE_UNICODE_INLINE int isxdigitW( WCHAR wc )
-{
- return get_char_typeW(wc) & C1_XDIGIT;
-}
-
-WINE_UNICODE_INLINE int islowerW( WCHAR wc )
-{
- return get_char_typeW(wc) & C1_LOWER;
-}
-
-WINE_UNICODE_INLINE int isupperW( WCHAR wc )
-{
- return get_char_typeW(wc) & C1_UPPER;
-}
-
-WINE_UNICODE_INLINE int isalnumW( WCHAR wc )
-{
- return get_char_typeW(wc) & (C1_ALPHA|C1_DIGIT|C1_LOWER|C1_UPPER);
-}
-
-WINE_UNICODE_INLINE int isalphaW( WCHAR wc )
-{
- return get_char_typeW(wc) & (C1_ALPHA|C1_LOWER|C1_UPPER);
-}
-
-WINE_UNICODE_INLINE int isgraphW( WCHAR wc )
-{
- return get_char_typeW(wc) & (C1_ALPHA|C1_PUNCT|C1_DIGIT|C1_LOWER|C1_UPPER);
-}
-
-WINE_UNICODE_INLINE int isprintW( WCHAR wc )
-{
- return get_char_typeW(wc) & (C1_ALPHA|C1_BLANK|C1_PUNCT|C1_DIGIT|C1_LOWER|C1_UPPER);
-}
-
/* some useful string manipulation routines */
WINE_UNICODE_INLINE unsigned int strlenW( const WCHAR *str )
@@ -263,20 +183,6 @@ WINE_UNICODE_INLINE size_t strcspnW( const WCHAR *str, const WCHAR *reject )
return ptr - str;
}
-WINE_UNICODE_INLINE WCHAR *strlwrW( WCHAR *str )
-{
- WCHAR *ret;
- for (ret = str; *str; str++) *str = tolowerW(*str);
- return ret;
-}
-
-WINE_UNICODE_INLINE WCHAR *struprW( WCHAR *str )
-{
- WCHAR *ret;
- for (ret = str; *str; str++) *str = toupperW(*str);
- return ret;
-}
-
WINE_UNICODE_INLINE WCHAR *memchrW( const WCHAR *ptr, WCHAR ch, size_t n )
{
const WCHAR *end;