Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (51 sloc) 1.47 KB
/*
LETTERFUNC - Unicode functions: I/O, string comparison, change casing
Copyright (C) 2012 Center for Sprogteknologi, University of Copenhagen
This file is part of CST's Language Technology Tools.
LETTERFUNC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LETTERFUNC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with LETTERFUNC; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "utf16func.h"
#include <string.h>
#if UNICODE_CAPABLE
#include "letter.h"
/*
int strCaseCmp(const wchar_t *s, const char *p)
{
wcharfolded S(s);
charfolded P(p);
int iS,iP;
while(true)
{
iS = S.C();
iP = P.C();
if(iS)
{
if(iP)
{
if(iS != iP)
return iS - iP;
}
else
return 1;
}
else
{
if(iP)
return -1;
else
return 0;
}
}
}
*/
#endif