# utils/unicode

module

<a id="functions">

## Functions

<a id="function-isCombiningMark">

### `isCombiningMark( character ) → boolean`

Checks whether given `character` is a combining mark.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/unicode.ts#L17)

#### Parameters

* `character: string`

  Character to check.

#### Returns

* `boolean`

<a id="function-isHighSurrogateHalf">

### `isHighSurrogateHalf( character ) → boolean`

Checks whether given `character` is a high half of surrogate pair.

Using UTF-16 terminology, a surrogate pair denotes UTF-16 character using two UTF-8 characters. The surrogate pair consist of high surrogate pair character followed by low surrogate pair character.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/unicode.ts#L30)

#### Parameters

* `character: string`

  Character to check.

#### Returns

* `boolean`

<a id="function-isInsideCombinedSymbol">

### `isInsideCombinedSymbol( string, offset ) → boolean`

Checks whether given offset in a string is between base character and combining mark or between two combining marks.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/unicode.ts#L62)

#### Parameters

* `string: string`

  String to check.

* `offset: number`

  Offset to check.

#### Returns

* `boolean`

<a id="function-isInsideEmojiSequence">

### `isInsideEmojiSequence( string, offset ) → boolean`

Checks whether given offset in a string is inside multi-character emoji sequence.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/unicode.ts#L74)

#### Parameters

* `string: string`

  String to check.

* `offset: number`

  Offset to check.

#### Returns

* `boolean`

<a id="function-isInsideSurrogatePair">

### `isInsideSurrogatePair( string, offset ) → boolean`

Checks whether given offset in a string is inside a surrogate pair (between two surrogate halves).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/unicode.ts#L52)

#### Parameters

* `string: string`

  String to check.

* `offset: number`

  Offset to check.

#### Returns

* `boolean`

<a id="function-isLowSurrogateHalf">

### `isLowSurrogateHalf( character ) → boolean`

Checks whether given `character` is a low half of surrogate pair.

Using UTF-16 terminology, a surrogate pair denotes UTF-16 character using two UTF-8 characters. The surrogate pair consist of high surrogate pair character followed by low surrogate pair character.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/unicode.ts#L42)

#### Parameters

* `character: string`

  Character to check.

#### Returns

* `boolean`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
