## CompareInfo::IndexOf(const String\&, char16_t) const method


查找指定字符。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | char16_t | 字符。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, CompareOptions) const method


查找指定字符。仅支持序数模式。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, CompareOptions options) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | char16_t | 字符。 |
| 选项 | CompareOptions | 查找选项。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, int) const method


查找指定字符。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | char16_t | 字符。 |
| start_index | int | 在源字符串中查找的起始索引。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, int, CompareOptions) const method


查找指定字符。仅支持序数模式。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index, CompareOptions options) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | char16_t | 字符。 |
| start_index | int | 在源字符串中查找的起始索引。 |
| 选项 | CompareOptions | 查找选项。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, int, int) const method


查找指定字符。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index, int count) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | char16_t | 字符。 |
| start_index | int | 在源字符串中查找的起始索引。 |
| count | int | 源字符串中的字符数。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, char16_t, int, int, CompareOptions) const method


查找指定字符。仅支持序数模式。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index, int count, CompareOptions options) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | char16_t | 字符。 |
| start_index | int | 在源字符串中查找的起始索引。 |
| count | int | 源字符串中的字符数。 |
| 选项 | CompareOptions | 查找选项。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&) const method


查找子字符串。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | const String\& | 查找值。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, CompareOptions) const method


查找子字符串。仅支持序数模式。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, CompareOptions options) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | const String\& | 查找值。 |
| 选项 | CompareOptions | 查找选项。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, int) const method


查找子字符串。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | const String\& | 查找值。 |
| start_index | int | 在源字符串中查找的起始索引。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, int, CompareOptions) const method


查找子字符串。仅支持序数模式。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index, CompareOptions options) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | const String\& | 查找值。 |
| start_index | int | 在源字符串中查找的起始索引。 |
| 选项 | CompareOptions | 查找选项。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, int, int) const method


查找子字符串。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index, int count) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | const String\& | 查找值。 |
| start_index | int | 在源字符串中查找的起始索引。 |
| count | int | 源字符串中的字符数。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IndexOf(const String\&, const String\&, int, int, CompareOptions) const method


查找子字符串。仅支持序数模式。

```cpp
virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index, int count, CompareOptions options) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 值 | const String\& | 查找值。 |
| start_index | int | 在源字符串中查找的起始索引。 |
| count | int | 源字符串中的字符数。 |
| 选项 | CompareOptions | 查找选项。 |

### ReturnValue

在源字符串中查找值的索引，如果未找到则为 -1。

## 另见

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
