-/**
-Determines whether the given string can be successfully decoded with this
-codec. Note that this function returning true does not guarantee that the
-string was actually encoded with this codec. In particular, many 8-bit
-encodings are indistinguishable.
-*/
-bool StringCodec::detect(const string &str) const