touchgfx::Unicode::strncmp_ignore_white_spaces() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::Unicode::strncmp_ignore_white_spaces()

touchgfx::Unicode::strncmp_ignore_white_spaces() method

@fn static int Unicode::strncmp_ignore_white_spaces(const UnicodeChar* RESTRICT str1, const UnicodeChar* RESTRICT str2, uint16_t maxchars); Like strncmp except that ignore any spaces in the two strings. Like strncmp except that ignore any spaces in the two strings.

Syntax

static int strncmp_ignore_white_spaces(const UnicodeChar* RESTRICT str1,     const UnicodeChar* RESTRICT str2,     uint16_t maxchars);

Arguments

str1

The first string.

str2

The second string.

maxchars

The maximum number of chars to compare.

Return value

Returns an integral value indicating the relationship between the strings: A zero value indicates that the characters compared in both strings are all equal. A value greater than zero indicates that the first character that does not match has a greater value in str1 than in str2; And a value less than zero indicates the opposite.

References

LocationText
Unicode.hpp:540
static int strncmp_ignore_white_spaces(const UnicodeChar* RESTRICT str1, const UnicodeChar* RESTRICT str2, uint16_t maxchars);