◐ Shell
clean mode source ↗

std::strcoll – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

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.

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.

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.

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.

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.

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.

Beispiel

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) [edit]

[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) [edit]

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) [edit]

C documentation for strcoll