public static int getMetatype(String metaString) throws XmlParseException {
		switch (metaString.charAt(0)) {
			case 'p':
				if (metaString.equals("ptr")) {
					return TYPE_PTR;
				}
				else if (metaString.equals("ptrrel")) {
					return TYPE_PTRREL;
				}
				break;
			case 'a':
				if (metaString.equals("array")) {
					return TYPE_ARRAY;
				}
				break;
			case 's':
				if (metaString.equals("struct")) {
					return TYPE_STRUCT;
				}
				break;
			case 'u':
				if (metaString.equals("unknown")) {
					return TYPE_UNKNOWN;
				}
				else if (metaString.equals("uint")) {
					return TYPE_UINT;
				}
				else if (metaString.equals("union")) {
					return TYPE_UNION;
				}
				break;
			case 'i':
				if (metaString.equals("int")) {
					return TYPE_INT;
				}
				break;
			case 'f':
				if (metaString.equals("float")) {
					return TYPE_FLOAT;
				}
				break;
			case 'b':
				if (metaString.equals("bool")) {
					return TYPE_BOOL;
				}
				break;
			case 'c':
				if (metaString.equals("code")) {
					return TYPE_CODE;
				}
				break;
			case 'v':
				if (metaString.equals("void")) {
					return TYPE_VOID;
				}
				break;
			default:
				break;
		}
		throw new XmlParseException("Unknown metatype: " + metaString);
	}
Convert an XML marshaling string to a metatype code
@param metaString is the string
@return the metatype code
@throws XmlParseException if the string does not represent a valid metatype
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/PcodeDataTypeManager.java