Strip the nullable prefix from the type name self

assert "String".strip_nullable == "String"
assert "nullable Array[Int]".strip_nullable == "Array[Int]"
assert "Map[Set[String], Set[Int]]".strip_nullable == "Map[Set[String], Set[Int]]"

Property definitions

serialization :: engine_tools $ Text :: strip_nullable
	# Strip the `nullable` prefix from the type name `self`
	#
	# ~~~
	# assert "String".strip_nullable == "String"
	# assert "nullable Array[Int]".strip_nullable == "Array[Int]"
	# assert "Map[Set[String], Set[Int]]".strip_nullable == "Map[Set[String], Set[Int]]"
	# ~~~
	fun strip_nullable: Text
	do
		var prefix = "nullable "
		return if has_prefix(prefix) then substring_from(prefix.length) else self
	end
lib/serialization/engine_tools.nit:69,2--80,4