lib/ucs2_string: Speed up ucs2_utf8size()
authorLukas Wunner <lukas@wunner.de>
Wed, 3 Aug 2016 08:16:02 +0000 (10:16 +0200)
committerMatt Fleming <matt@codeblueprint.co.uk>
Fri, 9 Sep 2016 15:08:46 +0000 (16:08 +0100)
commitcf289cefbfde519bbc179a86cdc5e8cc91a0a08d
treeafcdd2877f334ee47aa14f426c64cdd8369a1e3b
parentd520dd1f348dcaafcb8ce804b2a5ebb1be004719
lib/ucs2_string: Speed up ucs2_utf8size()

No need to calculate the string length on every loop iteration.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Peter Jones <pjones@redhat.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
lib/ucs2_string.c