Lines Matching refs:word

50     /** The type name of user word */
52 /** The type name of learn word */
413 * @param wnnWord The previous word for link search
466 /* If link search is enabled, insert information of the previous word */
524 /* If no word is retrieved, deactivate the cursor for reduce the resource */
536 /* Unset the previous word information */
549 /* If the key string is "", no word is retrieved */
648 /* Get the information of word */
848 public int addWordToUserDictionary( WnnWord[] word ) {
864 if( count + word.length > MAX_WORDS_IN_USER_DICTIONARY ) {
873 for( int index = 0 ; index < word.length ; index++ ) {
874 if( word[index].stroke.length() > 0 && word[index].stroke.length() <= MAX_STROKE_LENGTH &&
875 word[index].candidate.length() > 0 && word[index].candidate.length() <= MAX_CANDIDATE_LENGTH ) {
878 DatabaseUtils.appendEscapedSQLString( strokeSQL, word[index].stroke );
879 DatabaseUtils.appendEscapedSQLString( candidateSQL, word[index].candidate );
891 /* if the specified word is exist, an error reported and skipped that word. */
898 content.put( COLUMN_NAME_STROKE, word[index].stroke );
899 content.put( COLUMN_NAME_CANDIDATE, word[index].candidate );
900 content.put( COLUMN_NAME_POS_LEFT, word[index].partOfSpeech.left );
901 content.put( COLUMN_NAME_POS_RIGHT, word[index].partOfSpeech.right );
930 public int addWordToUserDictionary( WnnWord word ) {
932 words[0] = word;
940 public int removeWordFromUserDictionary( WnnWord[] word ) {
942 /* Remove the specified word */
948 for( int index = 0 ; index < word.length ; index++ ) {
949 if( word[index].stroke.length() > 0 && word[index].stroke.length() <= MAX_STROKE_LENGTH &&
950 word[index].candidate.length() > 0 && word[index].candidate.length() <= MAX_CANDIDATE_LENGTH ) {
953 DatabaseUtils.appendEscapedSQLString( strokeSQL, word[index].stroke );
954 DatabaseUtils.appendEscapedSQLString( candidateSQL, word[index].candidate );
980 public int removeWordFromUserDictionary( WnnWord word ) {
982 words[0] = word;
990 public int learnWord( WnnWord word ) {
991 return learnWord( word, null );
995 * Learn the word with connection.
997 * @param word The word to learn
998 * @param previousWord The word which is selected previously.
1001 public int learnWord( WnnWord word, WnnWord previousWord ) {
1011 /* If the information of previous word is set, perform the link learning */
1014 if( word.stroke.length() > 0 && word.stroke.length() <= MAX_STROKE_LENGTH &&
1015 word.candidate.length() > 0 && word.candidate.length() <= MAX_CANDIDATE_LENGTH ) {
1018 DatabaseUtils.appendEscapedSQLString( strokeSQL, word.stroke );
1019 DatabaseUtils.appendEscapedSQLString( candidateSQL, word.candidate );
1032 /* If a registering space is short, delete the words that contain same stroke and candidate to the oldest word */
1060 /* learning the word */
1065 content.put( COLUMN_NAME_STROKE, word.stroke );
1066 content.put( COLUMN_NAME_CANDIDATE, word.candidate );
1067 content.put( COLUMN_NAME_POS_LEFT, word.partOfSpeech.left );
1068 content.put( COLUMN_NAME_POS_RIGHT, word.partOfSpeech.right );