~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to system/lib/libc/musl/src/ctype/iswalpha.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <wctype.h>
 
2
 
 
3
static const unsigned char table[] = {
 
4
#include "alpha.h"
 
5
};
 
6
 
 
7
int iswalpha(wint_t wc)
 
8
{
 
9
        if (wc<0x20000U)
 
10
                return (table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1;
 
11
        if (wc<0x2fffeU)
 
12
                return 1;
 
13
        return 0;
 
14
}