unicode()radical()index()stroke_count()cangjie()four_corner()pinjim()jyutping()pinyin()english()
Lingua::ZH::CCDICT::ResultItem - A single result from a dictionary search
print $item->unicode();
print $_->syllable(), "\n" for $item->pinyin();
Each individual result returned by a Lingua::ZH::CCDICT::ResultSet
returns an object of this class.
This class provides the following methods:
unicode()
radical()
index()
stroke_count()
cangjie()
four_corner()These methods always return a single item when the requested data is available or a false value if this item is not available.
pinjim()
jyutping()
pinyin()
english()These methods represent data for which there may be multiple values. In a list context, all values are returned. In a scalar context, only the first value is returned. When the requested data is not available, a false value is returned.
Romanizations are returned as Lingua::ZH::CCDICT::Romanization
objects.
David Rolsky <autarch@urth.org>
Copyright (c) 2002-2007 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.