Changeset 5854 for trunk/src


Ignore:
Timestamp:
Jun 1, 2001, 9:49:01 AM (24 years ago)
Author:
sandervl
Message:

Added PathGetCharTypeA/W from Wine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shlwapi/path.c

    r5753 r5854  
    16411641UINT WINAPI PathGetCharTypeA(UCHAR ch)
    16421642{
    1643         FIXME("%c\n", ch);
    1644         return 0;
     1643        UINT flags = 0;
     1644
     1645        TRACE("%c\n", ch);
     1646
     1647        /* We could use them in filenames, but this would confuse 'ls' */
     1648        if (iscntrl(ch))
     1649            return GCT_INVALID;
     1650        if ((ch == '*') || (ch=='?'))
     1651            return GCT_WILD;
     1652        if ((ch == '\\') || (ch=='/'))
     1653            return GCT_SEPARATOR;
     1654        flags = 0;
     1655        /* all normal characters, no lower case letters */
     1656        if ((ch > ' ') && (ch < 0x7f) && !islower(ch))
     1657            flags |= GCT_SHORTCHAR;
     1658        /* All other characters are valid in long filenames, even umlauts */
     1659        return flags | GCT_LFNCHAR;
    16451660}
    16461661
     
    16501665UINT WINAPI PathGetCharTypeW(WCHAR ch)
    16511666{
    1652         FIXME("%c\n", ch);
    1653         return 0;
     1667        FIXME("%c, using ascii version\n", ch);
     1668        return PathGetCharTypeA(ch);
    16541669}
    16551670
Note: See TracChangeset for help on using the changeset viewer.