Count the amount of ch in this line.

Return A value > 0 if this line only consists of ch end spaces.

Property definitions

markdown $ MDLine :: count_chars
	# Count the amount of `ch` in this line.
	# Return A value > 0 if this line only consists of `ch` end spaces.
	fun count_chars(ch: Char): Int do
		var count = 0
		for c in value do
			if c == ' ' then
				continue
			end
			if c == ch then
				count += 1
				continue
			end
			count = 0
			break
		end
		return count
	end
lib/markdown/markdown.nit:1499,2--1515,4