net.sourceforge.pinyin4j
Class TextHelper

java.lang.Object
  extended by net.sourceforge.pinyin4j.TextHelper

 class TextHelper
extends java.lang.Object

Contains the utility functions supporting text processing

Author:
Li Min (xmlerlimin@gmail.com)

Constructor Summary
TextHelper()
           
 
Method Summary
(package private) static java.lang.String extractPinyinString(java.lang.String hanyuPinyinWithToneNumber)
           
(package private) static java.lang.String extractToneNumber(java.lang.String hanyuPinyinWithToneNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextHelper

TextHelper()
Method Detail

extractToneNumber

static java.lang.String extractToneNumber(java.lang.String hanyuPinyinWithToneNumber)
Parameters:
hanyuPinyinWithToneNumber -
Returns:
Hanyu Pinyin string without tone number

extractPinyinString

static java.lang.String extractPinyinString(java.lang.String hanyuPinyinWithToneNumber)
Parameters:
hanyuPinyinWithToneNumber -
Returns:
only tone number