## String::LastIndexOf(char_t) const method


Recherche arrière de caractère.

```cpp
int System::String::LastIndexOf(char_t value) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| value | char_t | Caractère à rechercher. |

### ReturnValue

Indice de la dernière position de caractère ou -1 si non trouvé.

## Voir aussi

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## String::LastIndexOf(char_t, int32_t) const method


Recherche arrière de caractère.

```cpp
int System::String::LastIndexOf(char_t value, int32_t startIndex) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| value | char_t | Caractère à rechercher. |
| startIndex | int32_t | Indice à partir duquel commencer la recherche. |

### ReturnValue

Indice de la dernière position de caractère depuis startIndex ou -1 si non trouvé.

## Voir aussi

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## String::LastIndexOf(char_t, int32_t, int32_t) const method


Recherche arrière de caractère.

```cpp
int System::String::LastIndexOf(char_t value, int32_t startIndex, int32_t count) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| value | char_t | Caractère à rechercher. |
| startIndex | int32_t | Indice à partir duquel commencer la recherche. |
| count | int32_t | Nombre de caractères à parcourir |

### ReturnValue

Indice de la dernière position de caractère depuis startIndex ou -1 si non trouvé.

## Voir aussi

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


Recherche arrière dans la sous-chaîne.

```cpp
int System::String::LastIndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| str | const String\& | Sous-chaîne à rechercher. |
| startIndex | int | Position dans la chaîne source à partir de laquelle commencer la recherche. |
| comparison_type | System::StringComparison | [Comparison](../../comparison/) mode. |

### ReturnValue

Indice de la dernière sous-chaîne trouvée ou -1 si non trouvé. Pour une chaîne de recherche vide, renvoie toujours la longueur de la chaîne.

## Voir aussi

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


Recherche arrière dans la sous-chaîne.

```cpp
int System::String::LastIndexOf(const String &str, int startIndex=INT32_MAX) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| str | const String\& | Sous-chaîne à rechercher. |
| startIndex | int | Position dans la chaîne source à partir de laquelle commencer la recherche. |

### ReturnValue

Indice de la dernière sous-chaîne trouvée ou -1 si non trouvé. Pour une chaîne de recherche vide, renvoie toujours la longueur de la chaîne.

## Voir aussi

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


Recherche arrière dans la sous-chaîne.

```cpp
int System::String::LastIndexOf(const String &str, System::StringComparison comparison_type) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| str | const String\& | Sous-chaîne à rechercher. |
| comparison_type | System::StringComparison | [Comparison](../../comparison/) mode. |

### ReturnValue

Indice de la dernière sous-chaîne trouvée ou -1 si non trouvé. Pour une chaîne de recherche vide, renvoie toujours la longueur de la chaîne.

## Voir aussi

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


Recherche arrière dans la sous-chaîne.

```cpp
int System::String::LastIndexOf(const String &value, int startIndex, int count, StringComparison comparisonType) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| value | const String\& | Sous-chaîne à rechercher. |
| startIndex | int | Position dans la chaîne source à partir de laquelle commencer la recherche. |
| count | int | Nombre de caractères à parcourir. |
| comparisonType | StringComparison | [Comparison](../../comparison/) mode. |

### ReturnValue

Indice de la dernière sous-chaîne trouvée ou -1 si non trouvé. Pour une chaîne de recherche vide, renvoie toujours startIndex+count.

## Voir aussi

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