- static std::string decodeKanjiSegment(Ref<BitSource> bits, int count);
- static std::string decodeByteSegment(Ref<BitSource> bits, int count);
- static std::string decodeAlphanumericSegment(Ref<BitSource> bits, int count);
- static std::string decodeNumericSegment(Ref<BitSource> bits, int count);
+ static void decodeKanjiSegment(Ref<BitSource> bits, std::string &result, int count);
+ static void decodeByteSegment(Ref<BitSource> bits, std::string &result, int count);
+ static void decodeAlphanumericSegment(Ref<BitSource> bits, std::string &result, int count);
+ static void decodeNumericSegment(Ref<BitSource> bits, std::string &result, int count);