mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
cmd: Skip tabs as well as spaces in WCMD_skip_leading_spaces.
This commit is contained in:
parent
7b125126a7
commit
f37ab586d8
@ -158,8 +158,8 @@ BAZ=bazbaz
|
||||
bazbaz
|
||||
set "FOO=bar" should not include the quotes in the variable value
|
||||
bar
|
||||
@todo_wine@foo
|
||||
@todo_wine@''
|
||||
foo
|
||||
''
|
||||
'foo@space@'
|
||||
'foo@tab@'
|
||||
------------ Testing variable expansion --------------
|
||||
|
@ -443,7 +443,7 @@ void WCMD_strsubstW(WCHAR *start, const WCHAR *next, const WCHAR *insert, int le
|
||||
/***************************************************************************
|
||||
* WCMD_skip_leading_spaces
|
||||
*
|
||||
* Return a pointer to the first non-space character of string.
|
||||
* Return a pointer to the first non-whitespace character of string.
|
||||
* Does not modify the input string.
|
||||
*/
|
||||
WCHAR *WCMD_skip_leading_spaces (WCHAR *string) {
|
||||
@ -451,7 +451,7 @@ WCHAR *WCMD_skip_leading_spaces (WCHAR *string) {
|
||||
WCHAR *ptr;
|
||||
|
||||
ptr = string;
|
||||
while (*ptr == ' ') ptr++;
|
||||
while (*ptr == ' ' || *ptr == '\t') ptr++;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user