Move functions in comctl32/string.c to remove function declaration.
This commit is contained in:
parent
eb3fec1b87
commit
1c310878ac
|
@ -40,11 +40,6 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(commctrl);
|
WINE_DEFAULT_DEBUG_CHANNEL(commctrl);
|
||||||
|
|
||||||
INT WINAPI StrCmpNA(LPCSTR, LPCSTR, INT);
|
|
||||||
INT WINAPI StrCmpNW(LPCWSTR, LPCWSTR, INT);
|
|
||||||
INT WINAPI StrCmpNIA(LPCSTR, LPCSTR, INT);
|
|
||||||
INT WINAPI StrCmpNIW(LPCWSTR, LPCWSTR, INT);
|
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* COMCTL32_ChrCmpHelperA
|
* COMCTL32_ChrCmpHelperA
|
||||||
*
|
*
|
||||||
|
@ -179,6 +174,45 @@ LPSTR WINAPI StrChrA(LPCSTR lpszStr, WORD ch)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* StrCmpNIA [COMCTL32.353]
|
||||||
|
*
|
||||||
|
* Compare two strings, up to a maximum length, ignoring case.
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* lpszStr [I] First string to compare
|
||||||
|
* lpszComp [I] Second string to compare
|
||||||
|
* iLen [I] Maximum number of chars to compare.
|
||||||
|
*
|
||||||
|
* RETURNS
|
||||||
|
* An integer less than, equal to or greater than 0, indicating that
|
||||||
|
* lpszStr is less than, the same, or greater than lpszComp.
|
||||||
|
*/
|
||||||
|
INT WINAPI StrCmpNIA(LPCSTR lpszStr, LPCSTR lpszComp, INT iLen)
|
||||||
|
{
|
||||||
|
INT iRet;
|
||||||
|
|
||||||
|
TRACE("(%s,%s,%i)\n", debugstr_a(lpszStr), debugstr_a(lpszComp), iLen);
|
||||||
|
|
||||||
|
iRet = CompareStringA(GetThreadLocale(), NORM_IGNORECASE, lpszStr, iLen, lpszComp, iLen);
|
||||||
|
return iRet == CSTR_LESS_THAN ? -1 : iRet == CSTR_GREATER_THAN ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
* StrCmpNIW [COMCTL32.361]
|
||||||
|
*
|
||||||
|
* See StrCmpNIA.
|
||||||
|
*/
|
||||||
|
INT WINAPI StrCmpNIW(LPCWSTR lpszStr, LPCWSTR lpszComp, INT iLen)
|
||||||
|
{
|
||||||
|
INT iRet;
|
||||||
|
|
||||||
|
TRACE("(%s,%s,%i)\n", debugstr_w(lpszStr), debugstr_w(lpszComp), iLen);
|
||||||
|
|
||||||
|
iRet = CompareStringW(GetThreadLocale(), NORM_IGNORECASE, lpszStr, iLen, lpszComp, iLen);
|
||||||
|
return iRet == CSTR_LESS_THAN ? -1 : iRet == CSTR_GREATER_THAN ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* COMCTL32_StrStrHelperA
|
* COMCTL32_StrStrHelperA
|
||||||
*
|
*
|
||||||
|
@ -372,45 +406,6 @@ INT WINAPI StrCmpNA(LPCSTR lpszStr, LPCSTR lpszComp, INT iLen)
|
||||||
return iRet == CSTR_LESS_THAN ? -1 : iRet == CSTR_GREATER_THAN ? 1 : 0;
|
return iRet == CSTR_LESS_THAN ? -1 : iRet == CSTR_GREATER_THAN ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
|
||||||
* StrCmpNIA [COMCTL32.353]
|
|
||||||
*
|
|
||||||
* Compare two strings, up to a maximum length, ignoring case.
|
|
||||||
*
|
|
||||||
* PARAMS
|
|
||||||
* lpszStr [I] First string to compare
|
|
||||||
* lpszComp [I] Second string to compare
|
|
||||||
* iLen [I] Maximum number of chars to compare.
|
|
||||||
*
|
|
||||||
* RETURNS
|
|
||||||
* An integer less than, equal to or greater than 0, indicating that
|
|
||||||
* lpszStr is less than, the same, or greater than lpszComp.
|
|
||||||
*/
|
|
||||||
INT WINAPI StrCmpNIA(LPCSTR lpszStr, LPCSTR lpszComp, INT iLen)
|
|
||||||
{
|
|
||||||
INT iRet;
|
|
||||||
|
|
||||||
TRACE("(%s,%s,%i)\n", debugstr_a(lpszStr), debugstr_a(lpszComp), iLen);
|
|
||||||
|
|
||||||
iRet = CompareStringA(GetThreadLocale(), NORM_IGNORECASE, lpszStr, iLen, lpszComp, iLen);
|
|
||||||
return iRet == CSTR_LESS_THAN ? -1 : iRet == CSTR_GREATER_THAN ? 1 : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*************************************************************************
|
|
||||||
* StrCmpNIW [COMCTL32.361]
|
|
||||||
*
|
|
||||||
* See StrCmpNIA.
|
|
||||||
*/
|
|
||||||
INT WINAPI StrCmpNIW(LPCWSTR lpszStr, LPCWSTR lpszComp, INT iLen)
|
|
||||||
{
|
|
||||||
INT iRet;
|
|
||||||
|
|
||||||
TRACE("(%s,%s,%i)\n", debugstr_w(lpszStr), debugstr_w(lpszComp), iLen);
|
|
||||||
|
|
||||||
iRet = CompareStringW(GetThreadLocale(), NORM_IGNORECASE, lpszStr, iLen, lpszComp, iLen);
|
|
||||||
return iRet == CSTR_LESS_THAN ? -1 : iRet == CSTR_GREATER_THAN ? 1 : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* StrCmpNW [COMCTL32.360]
|
* StrCmpNW [COMCTL32.360]
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue