util.Char - GavriYashar/Matlab-Utilities GitHub Wiki

This is an enumeration of characters which can not be saved within .m files, but can be displayed in the console.

usage example

str = "test" + util.Char.DOWNWARDS_ARROW_WITH_CORNER_LEFTWARDS.char() + "hallo!";

str = 
    "test↵hallo!"

Methods

dispAll

Displays all available enumerations.

util.Char.dispAll()
...
	∜	<	(221C)		FOURTH_ROOT
	∝	<	(221D)		PROPORTIONAL_TO
	∞	<	(221E)		INFINITY
	∟	<	(221F)		RIGHT_ANGLE
	∠	<	(2220)		ANGLE
	∡	<	(2221)		MEASURED_ANGLE
	∢	<	(2222)		SPHERICAL_ANGLE
...

searchByRegex(expr)

Searches through all available enumerations containing the expression.

til.Char.searchByRegex("arrow")

 81 found with "arrow"
	←	<	(2190)		LEFTWARDS_ARROW
	↑	<	(2191)		UPWARDS_ARROW
	→	<	(2192)		RIGHTWARDS_ARROW
	↓	<	(2193)		DOWNWARDS_ARROW
	↔	<	(2194)		LEFT_RIGHT_ARROW
	↕	<	(2195)		UP_DOWN_ARROW
	↖	<	(2196)		NORTH_WEST_ARROW
...