Lines Matching refs:OffsetEncoding
398 if (auto *OffsetEncoding = O->get("offsetEncoding")) { in fromJSON() local
400 if (!fromJSON(*OffsetEncoding, *R.offsetEncoding, in fromJSON()
1264 static const char *toString(OffsetEncoding OE) { in toString()
1266 case OffsetEncoding::UTF8: in toString()
1268 case OffsetEncoding::UTF16: in toString()
1270 case OffsetEncoding::UTF32: in toString()
1272 case OffsetEncoding::UnsupportedEncoding: in toString()
1277 llvm::json::Value toJSON(const OffsetEncoding &OE) { return toString(OE); } in toJSON()
1278 bool fromJSON(const llvm::json::Value &V, OffsetEncoding &OE, in fromJSON()
1283 OE = llvm::StringSwitch<OffsetEncoding>(*Str) in fromJSON()
1284 .Case("utf-8", OffsetEncoding::UTF8) in fromJSON()
1285 .Case("utf-16", OffsetEncoding::UTF16) in fromJSON()
1286 .Case("utf-32", OffsetEncoding::UTF32) in fromJSON()
1287 .Default(OffsetEncoding::UnsupportedEncoding); in fromJSON()
1290 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, OffsetEncoding Enc) { in operator <<()