]> git.wincent.com - wikitext.git/commit
Refactor _Wikitext_utf32_char_to_entity (append to buffer)
authorWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 17:23:02 +0000 (19:23 +0200)
committerWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 17:23:02 +0000 (19:23 +0200)
commita6ac22ffff2f9f472e5a9f9b5371dffd8846af53
treea6008f4813f97516dc44bda4cfe5b80b96309abd
parent8dc1c13408926b46a18bdbcfecdaeb93eada1007
Refactor _Wikitext_utf32_char_to_entity (append to buffer)

Rename the _Wikitext_utf32_char_to_entity function to
_Wikitext_append_entity_from_utf32_char, teaching it to
append to a target buffer directly rather than creating
a temporary Ruby String instance.

I don't particularly like these low-level manipulations but
the main goal here is to avoid the extra allocation; a
subsequent commit will clean up.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c