Skip to content

why just check the first character in word? #6

Open
@xuehui1991

Description

@xuehui1991

Hey I just wonder that why just only check the first character in word in Tokenizer.java?

public boolean ifWords_Eng(String tmpWord)
{
if (tmpWord.charAt(0)>='A' && tmpWord.charAt(0)<='Z') return true;
if (tmpWord.charAt(0)>='a' && tmpWord.charAt(0)<='z') return true;
return false;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions