Skip to content

ProtoString toEnclosed() Method

Seth Clydesdale edited this page May 27, 2015 · 1 revision

<< Back to Conversion Methods

Example

Converting alphanumerics into enclosed alphanumerics.

'Coffee'.toEnclosed(); // returns 'Ⓒⓞⓕⓕⓔⓔ'
'Number 1'.toEnclosed(); // returns 'Ⓝⓤⓜⓑⓔⓡ ①'
'Hello world!'.toEnclosed(); // returns 'Ⓗⓔⓛⓛⓞ ⓦⓞⓡⓛⓓ!'

Description

The toEnclosed method converts all Alphanumeric characters into Enclosed Alphanumeric characters. Characters that cannot be converted to an enclosed character will maintain their appearance.

Syntax

String.toEnclosed();
Clone this wiki locally