## CompareInfo::IndexOf(const String\&, char16_t) const method


Looks for the specified character.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | char16_t | Character. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, CompareOptions) const method


Looks for the specified character. Only Ordinal mode is supported.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, CompareOptions options) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | char16_t | Character. |
| options | CompareOptions | Lookup options. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, int) const method


Looks for the specified character.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | char16_t | Character. |
| start_index | int | Lookup start index in source string. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, int, CompareOptions) const method


Looks for the specified character. Only Ordinal mode is supported.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index, CompareOptions options) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | char16_t | Character. |
| start_index | int | Lookup start index in source string. |
| options | CompareOptions | Lookup options. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, int, int) const method


Looks for the specified character.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index, int count) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | char16_t | Character. |
| start_index | int | Lookup start index in source string. |
| count | int | Number of characters in source string. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, int, int, CompareOptions) const method


Looks for the specified character. Only Ordinal mode is supported.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index, int count, CompareOptions options) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | char16_t | Character. |
| start_index | int | Lookup start index in source string. |
| count | int | Number of characters in source string. |
| options | CompareOptions | Lookup options. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&) const method


Looks for substring.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | const String\& | Lookup value. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, CompareOptions) const method


Looks for substring. Only Ordinal mode is supported.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, CompareOptions options) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | const String\& | Lookup value. |
| options | CompareOptions | Lookup options. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, int) const method


Looks for substring.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | const String\& | Lookup value. |
| start_index | int | Lookup start index in source string. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, int, CompareOptions) const method


Looks for substring. Only Ordinal mode is supported.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index, CompareOptions options) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | const String\& | Lookup value. |
| start_index | int | Lookup start index in source string. |
| options | CompareOptions | Lookup options. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, int, int) const method


Looks for substring.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index, int count) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | const String\& | Lookup value. |
| start_index | int | Lookup start index in source string. |
| count | int | Number of characters in source string. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, int, int, CompareOptions) const method


Looks for substring. Only Ordinal mode is supported.

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index, int count, CompareOptions options) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| value | const String\& | Lookup value. |
| start_index | int | Lookup start index in source string. |
| count | int | Number of characters in source string. |
| options | CompareOptions | Lookup options. |

### ReturnValue

[Index](../../../system/index/) of lookup value in source string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
