Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenff_string.h
Go to the documentation of this file.
00001 /***************************************************************************** 00002 * FullFAT - High Performance, Thread-Safe Embedded FAT File-System * 00003 * Copyright (C) 2009 James Walmsley (james@worm.me.uk) * 00004 * * 00005 * This program is free software: you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation, either version 3 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 00017 * * 00018 * IMPORTANT NOTICE: * 00019 * ================= * 00020 * Alternative Licensing is available directly from the Copyright holder, * 00021 * (James Walmsley). For more information consult LICENSING.TXT to obtain * 00022 * a Commercial license. * 00023 * * 00024 * See RESTRICTIONS.TXT for extra restrictions on the use of FullFAT. * 00025 * * 00026 * Removing the above notice is illegal and will invalidate this license. * 00027 ***************************************************************************** 00028 * See http://worm.me.uk/fullfat for more information. * 00029 * Or http://fullfat.googlecode.com/ for latest releases and the wiki. * 00030 *****************************************************************************/ 00031 00043 #ifndef _FF_STRING_H_ 00044 #define _FF_STRING_H_ 00045 00046 #include "ff_types.h" 00047 #include "ff_config.h" 00048 #include <string.h> 00049 00050 #ifdef WIN32 00051 #define FF_stricmp stricmp 00052 #else 00053 #define FF_stricmp strcasecmp 00054 #endif 00055 00056 #ifdef FF_UNICODE_SUPPORT 00057 void FF_tolower (FF_T_WCHAR *string, FF_T_UINT32 strLen); 00058 void FF_toupper (FF_T_WCHAR *string, FF_T_UINT32 strLen); 00059 FF_T_BOOL FF_strmatch (const FF_T_WCHAR *str1, const FF_T_WCHAR *str2, FF_T_UINT16 len); 00060 FF_T_WCHAR *FF_strtok (const FF_T_WCHAR *string, FF_T_WCHAR *token, FF_T_UINT16 *tokenNumber, FF_T_BOOL *last, FF_T_UINT16 Length); 00061 FF_T_BOOL FF_wildcompare (const FF_T_WCHAR *pszWildCard, const FF_T_WCHAR *pszString); 00062 00063 // ASCII to UTF16 and UTF16 to ASCII routines. -- These are lossy routines, and are only for converting ASCII to UTF-16 00064 // and the equivalent back to ASCII. Do not use them for international text. 00065 void FF_cstrtowcs(FF_T_WCHAR *wcsDest, const FF_T_INT8 *szpSource); 00066 void FF_wcstocstr(FF_T_INT8 *szpDest, const FF_T_WCHAR *wcsSource); 00067 void FF_cstrntowcs(FF_T_WCHAR *wcsDest, const FF_T_INT8 *szpSource, FF_T_UINT32 len); 00068 void FF_wcsntocstr(FF_T_INT8 *szpDest, const FF_T_WCHAR *wcsSource, FF_T_UINT32 len); 00069 00070 #else 00071 void FF_tolower (FF_T_INT8 *string, FF_T_UINT32 strLen); 00072 void FF_toupper (FF_T_INT8 *string, FF_T_UINT32 strLen); 00073 FF_T_BOOL FF_strmatch (const FF_T_INT8 *str1, const FF_T_INT8 *str2, FF_T_UINT16 len); 00074 FF_T_INT8 *FF_strtok (const FF_T_INT8 *string, FF_T_INT8 *token, FF_T_UINT16 *tokenNumber, FF_T_BOOL *last, FF_T_UINT16 Length); 00075 FF_T_BOOL FF_wildcompare (const FF_T_INT8 *pszWildCard, const FF_T_INT8 *pszString); 00076 #endif 00077 00078 #endif Generated on Wed May 23 2012 04:31:03 for ReactOS by
1.7.6.1
|