Don't load user32 too early on for 16-bit apps, so that app-specific
[wine/multimedia.git] / misc / lstr.c
blob5b674dbbd703aaac45ab87cd470aae21696b66ab
1 /*
2 * String functions
4 * Copyright 1993 Yngvi Sigurjonsson (yngvi@hafro.is)
5 * Copyright 1996 Marcus Meissner
6 */
8 #include "config.h"
10 #include <stdarg.h>
11 #include <stdlib.h>
12 #include <stdio.h>
13 #include <string.h>
14 #include <ctype.h>
16 #include "windef.h"
17 #include "winbase.h"
18 #include "wingdi.h"
19 #include "winuser.h"
20 #include "wine/winbase16.h"
21 #include "wine/winuser16.h"
22 #include "wine/unicode.h"
23 #include "winnls.h"
24 #include "heap.h"
25 #include "debugtools.h"
27 DEFAULT_DEBUG_CHANNEL(resource);
29 extern const WORD OLE2NLS_CT_CType3_LUT[]; /* FIXME: does not belong here */
31 /***********************************************************************
32 * IsCharAlphaA (USER.433) (USER32.331)
33 * FIXME: handle current locale
35 BOOL WINAPI IsCharAlphaA(CHAR x)
37 return (OLE2NLS_CT_CType3_LUT[(unsigned char)x] & C3_ALPHA);
40 /***********************************************************************
41 * IsCharAlphaNumericA (USER.434) (USER32.332)
42 * FIXME: handle current locale
44 BOOL WINAPI IsCharAlphaNumericA(CHAR x)
46 return IsCharAlphaA(x) || isdigit(x) ;