First, the connector "Joiner"
Second, the splitter "Splitter"
Three, character match "Charmatcher"
Iv. Character Set "Charsets"
charsets: The six character sets that are guaranteed to support all Java platforms provide a constant reference. Try to use these constants instead of getting character set instances by name.
Try { byte[] bytes = Test.getbytes ("UTf-8"); Catch (unsupportedencodingexception e) { e.printstacktrace (); }
Change to the following expression:
byte [] bytes = Test.getbytes (charsets.utf_8);
is actually equivalent to:
byte [] bytes = Test.getbytes (Charset.forname ("UTF-8"));
V. Uppercase and lowercase format "Caseformat"
Caseformat is used to easily convert strings between various ASCII case specifications, such as the naming conventions for programming languages. Caseformat supports the following formats:
Format |
Example |
Lower_camel |
Lowercamel |
Lower_hyphen |
Lower-hyphen |
Lower_underscore |
Lower_underscore |
Upper_camel |
Uppercamel |
Upper_underscore |
Upper_underscore |
String Testcaseformat = CaseFormat.UPPER_UNDERSCORE.to (Caseformat.lower_camel, "constant_name");
[Google Guava] string processing: Connector, splitter, character match