public String parseString(AbstractPdb pdb, StringParseType stType) throws PdbException {
		switch (stType) {
			case StringNt:
				return parseNullTerminatedString(pdb.getPdbReaderOptions().getOneByteCharset());
			case StringSt:
				return parseByteLengthPrefixedString(pdb.getPdbReaderOptions().getOneByteCharset());
			case StringUtf8St:
				return parseByteLengthPrefixedUtf8String();
			case StringUtf8Nt:
				return parseNullTerminatedUtf8String();
			case StringWcharNt:
				return parseNullTerminatedWcharString(
					pdb.getPdbReaderOptions().getTwoByteCharset());
			default:
				throw new PdbException("Bad string type");
		}
	}
Parses a string, as indicated by the {@link StringParseType}, from the PdbByteReader and
returns it.  Where needed, uses one of the String encoding options as retained in the
associated {@link PdbReaderOptions}.
@param pdb the {@link AbstractPdb} for which the parsing is taking place.
@param stType the {@link StringParseType} to use for parsing.
@return the resultant {@link String}.
@throws PdbException upon unhandled {@link StringParseType}.
Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb2/pdbreader/PdbByteReader.java