Dave Rolsky > Lingua-ZH-CCDICT-0.05 > Lingua::ZH::CCDICT::ResultItem

Download:
Lingua-ZH-CCDICT-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Lingua::ZH::CCDICT::ResultItem - A single result from a dictionary search

SYNOPSIS ^

  print $item->unicode();

  print $_->syllable(), "\n" for $item->pinyin();

DESCRIPTION ^

Each individual result returned by a Lingua::ZH::CCDICT::ResultSet returns an object of this class.

METHODS ^

This class provides the following methods:

$item->unicode()

$item->radical()

$item->index()

$item->stroke_count()

$item->cangjie()

$item->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.

$item->pinjim()

$item->jyutping()

$item->pinyin()

$item->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.

AUTHOR ^

David Rolsky <autarch@urth.org>

COPYRIGHT ^

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.

syntax highlighting: