## String::Compare(const String\&, const String\&, bool, const SharedPtr\<System::Globalization::CultureInfo\>\&) method


Less-equal-greater confronta due stringhe.

```cpp
static int System::String::Compare(const String &strA, const String &strB, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &ci)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| strA | const String\& | Prima stringa da confrontare. |
| strB | const String\& | Seconda stringa da confrontare. |
| ignoreCase | bool | Specifica se il confronto è case-insensitive. |
| ci | const SharedPtr\<System::Globalization::CultureInfo\>\& | Culture da utilizzare per il confronto. |

### ReturnValue

Valore negativo se la prima sottostringa è minore della seconda, zero se corrispondono, valore positivo altrimenti.

## Vedi anche

* Class [String](../)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::Compare(const String\&, const String\&, bool) method


Less-equal-greater confronta due stringhe.

```cpp
static int System::String::Compare(const String &strA, const String &strB, bool ignoreCase=false)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| strA | const String\& | Prima stringa da confrontare. |
| strB | const String\& | Seconda stringa da confrontare. |
| ignoreCase | bool | Specifica se il confronto è case-insensitive. |

### ReturnValue

Valore negativo se la prima sottostringa è minore della seconda, zero se corrispondono, valore positivo altrimenti.

## Vedi anche

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::Compare(const String\&, const String\&, System::StringComparison) method


Less-equal-greater confronta due stringhe.

```cpp
static int System::String::Compare(const String &strA, const String &strB, System::StringComparison comparison_type)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| strA | const String\& | Prima stringa da confrontare. |
| strB | const String\& | Seconda stringa da confrontare. |
| comparison_type | System::StringComparison | Modalità [Comparison](../../comparison/). |

### ReturnValue

Valore negativo se la prima sottostringa è minore della seconda, zero se corrispondono, valore positivo altrimenti.

## Vedi anche

* Class [String](../)
* Enum [StringComparison](../../stringcomparison/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::Compare(const String\&, int, const String\&, int, int, bool, const SharedPtr\<System::Globalization::CultureInfo\>\&) method


Less-equal-greater confronta due sottostringhe.

```cpp
static int System::String::Compare(const String &strA, int indexA, const String &strB, int indexB, int length, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &ci)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| strA | const String\& | Prima stringa da confrontare. |
| indexA | int | Inizio della sottostringa della prima stringa. |
| strB | const String\& | Seconda stringa da confrontare. |
| indexB | int | Inizio della sottostringa della seconda stringa. |
| lunghezza | int | Numero di caratteri da confrontare. |
| ignoreCase | bool | Specifica se il confronto è case-insensitive. |
| ci | const SharedPtr\<System::Globalization::CultureInfo\>\& | Culture da utilizzare per il confronto. |

### ReturnValue

Valore negativo se la prima sottostringa è minore della seconda, zero se corrispondono, valore positivo altrimenti.

## Vedi anche

* Class [String](../)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::Compare(const String\&, int, const String\&, int, int, bool) method


Less-equal-greater confronta due sottostringhe.

```cpp
static int System::String::Compare(const String &strA, int indexA, const String &strB, int indexB, int length, bool ignoreCase=false)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| strA | const String\& | Prima stringa da confrontare. |
| indexA | int | Inizio della sottostringa della prima stringa. |
| strB | const String\& | Seconda stringa da confrontare. |
| indexB | int | Inizio della sottostringa della seconda stringa. |
| lunghezza | int | Numero di caratteri da confrontare. |
| ignoreCase | bool | Specifica se il confronto è case-insensitive. |

### ReturnValue

Valore negativo se la prima sottostringa è minore della seconda, zero se corrispondono, valore positivo altrimenti.

## Vedi anche

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::Compare(const String\&, int, const String\&, int, int, System::StringComparison) method


Less-equal-greater confronta due stringhe.

```cpp
static int System::String::Compare(const String &strA, int indexA, const String &strB, int indexB, int length, System::StringComparison comparison_type)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| strA | const String\& | Prima stringa da confrontare. |
| indexA | int | Inizio della sottostringa della prima stringa. |
| strB | const String\& | Seconda stringa da confrontare. |
| indexB | int | Inizio della sottostringa della seconda stringa. |
| lunghezza | int | Numero di caratteri da confrontare. |
| comparison_type | System::StringComparison | Modalità [Comparison](../../comparison/). |

### ReturnValue

Valore negativo se la prima sottostringa è minore della seconda, zero se corrispondono, valore positivo altrimenti.

## Vedi anche

* Class [String](../)
* Enum [StringComparison](../../stringcomparison/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
