std::strcoll
Aus cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
definiert in Header <cstring>
|
||
int strcoll( const char* lhs, const char* rhs ); |
||
Vergleicht zwei null-terminierte Byte-Strings nach dem aktuellen Gebietsschema als durch die LC_COLLATE Kategorie definiert .
Original:
Compares two null-terminated byte strings according to the current locale as defined by the LC_COLLATE category.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
lhs, rhs | - | Zeiger auf die null-terminierte Byte-Strings zu vergleichen
Original: pointers to the null-terminated byte strings to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[Bearbeiten] Rückgabewert
Negativen Wert, wenn
lhs
ist weniger als (voraus) rhs
.Original:
Negative value if
lhs
is less than (precedes) rhs
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
0 wenn
lhs
ist gleich rhs
.Original:
0 if
lhs
is equal to rhs
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Positiven Wert, wenn
lhs
ist größer (folgt) rhs
.Original:
Positive value if
lhs
is greater than (follows) rhs
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten] Notes
Sortierreihenfolge ist in der Regel lexikographische Groß-und Kleinschreibung Vergleich gemäß der Ländereinstellung Alphabet, aber in manchen Gebietsschemas vergleichen Gruppen von Zeichen als einzelne Sortierung Einheiten. Zum Beispiel folgt "ch" in der Tschechischen "h" und vor "i" und "ng" in Welsh folgt "g" und vor "h" .
Original:
Collation order is typically lexicographic case-insensitive comparison according to the locale's alphabet, but in some locales, groups of characters compare as single collation units. For example, "ch" in Czech follows "h" and precedes "i", and "ng" in Welsh follows "g" and precedes "h".
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten] Beispiel
This section is incomplete Reason: no example |
[Bearbeiten] Siehe auch
vergleicht zwei Wide-Strings in Übereinstimmung mit dem aktuellen Gebietsschema Original: compares two wide strings in accordance to the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
[virtuell] |
vergleicht zwei Strings mit dieser Facette der Kollatierung Regeln Original: compares two strings using this facet's collation rules The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::collate )
|
verwandeln einen String, so dass strcmp das gleiche Ergebnis wie strcoll erzeugen würde Original: transform a string so that strcmp would produce the same result as strcoll The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
C documentation for strcoll
|