## Char::IsSurrogate(char_t) method


Determines if the specified character is a UTF-16 surrogate code unit.

```cpp
static bool System::Char::IsSurrogate(char_t c)
```


| Parameter | Type | Description |
| --- | --- | --- |
| c | char_t | A character |

### ReturnValue

True if the specified character is a UTF-16 surrogate code unit, otherwise - false

## See Also

* Class [Char](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Char::IsSurrogate(const String\&, int) method


Determines whether the character at the specified index in the specified string is UTF-16 surrogate code unit.

```cpp
static bool System::Char::IsSurrogate(const String &s, int index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| s | const String\& | A string |
| index | int | The index of the character in the specified string |

### ReturnValue

True if the character at the specified index is a UTF-16 surrogate code unit, otherwise - false

## See Also

* Class [String](../../string/)
* Class [Char](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
