|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.utility.StringTools
public class StringTools
This class implements useful string functions
Constructor Summary | |
---|---|
StringTools()
|
Method Summary | |
---|---|
static java.lang.String |
normaliseEncoding(java.lang.String encodingName)
Normalises several common encodings found, for instance in HTTP or HTML headers, into the compatible Java encoding |
static int |
utf8_length(java.lang.String s)
Returns how long String s is in bytes, if encoded in UTF-8 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringTools()
Method Detail |
---|
public static int utf8_length(java.lang.String s)
s
- The string to be measured.
public static java.lang.String normaliseEncoding(java.lang.String encodingName)
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |