## CompareInfo::IsPrefix(const String\&, const String\&) const method


Checks if the specified string starts with the specified prefix.

```cpp
virtual bool System::Globalization::CompareInfo::IsPrefix(const String &source, const String &prefix) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| prefix | const String\& | Prefix string. |

### ReturnValue

True if string starts with prefix; otherwise false.

## See Also

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IsPrefix(const String\&, const String\&, CompareOptions) const method


Checks if the specified string starts with the specified prefix using the specified compare options.

```cpp
virtual bool System::Globalization::CompareInfo::IsPrefix(const String &source, const String &prefix, CompareOptions options) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| prefix | const String\& | Prefix string. |
| options | CompareOptions | Compare options. |

### ReturnValue

True if string starts with prefix; otherwise false.

## See Also

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
