class EL_STRING_8_ESCAPER_IMP

(source code)

description

STRING_8 implementation of EL_STRING_ESCAPER_IMP [STRING_GENERAL]

note
	description: "${STRING_8} implementation of ${EL_STRING_ESCAPER_IMP [STRING_GENERAL]}"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2024-08-20 12:57:06 GMT (Tuesday 20th August 2024)"
	revision: "7"

class
	EL_STRING_8_ESCAPER_IMP

inherit
	EL_STRING_ESCAPER_IMP [STRING_8]
		undefine
			bit_count
		end

	EL_STRING_8_BIT_COUNTABLE [STRING_8]

create
	make

feature -- Access

	empty_buffer: like buffer
		do
			Result := buffer
			Result.wipe_out
		end

feature -- Basic operations

	prepend_character (str: STRING_8; uc: CHARACTER_32)
		require else
			one_byte_character: uc.is_character_8
		do
			str.prepend_character (uc.to_character_8)
		end

end