Anti Caps Lock
#2

PHP код:
ToLowerExtended(string[], len sizeof string)
{
    for(new 
ileni++)
    {
        
// basic Latin
        
if('A' <= string[i] <= 'Z')
        {
            
string[i] += 0x0020;
            continue;
        }
        
        
// Latin-1 Supplement
        
if((0x00C0 <= string[i] <= 0x00DE) && string[i] != 0x00D7// 00D7 is multiplication symbol
        
{
            
string[i] += 0x0020;
            continue;
        }
        
        
// Latin Extended-A
        
if((0x0100 <= string[i] <= 0x017F) && !(string[i] & 1)) // even numbers are uppercase
        
{
            
string[i] += 0x0001;
            continue;
        }    
    }

Not tested, based off of http://unicode-table.com
Reply


Messages In This Thread
Anti Caps Lock - by sampkinq - 01.07.2016, 16:19
Re: Anti Caps Lock - by Vince - 01.07.2016, 17:04
Re: Anti Caps Lock - by AbyssMorgan - 01.07.2016, 17:55
Re: Anti Caps Lock - by ZiGGi - 01.07.2016, 22:46
Re: Anti Caps Lock - by Gammix - 01.07.2016, 22:50
Re: Anti Caps Lock - by ZiGGi - 01.07.2016, 23:05
Re: Anti Caps Lock - by AbyssMorgan - 02.07.2016, 06:17

Forum Jump:


Users browsing this thread: 1 Guest(s)