private DemangledDataType createTypeInNamespace(String name) {
		List<String> names = SymbolPathParser.parse(name, false);
		DemangledType namespace = null;
		if (names.size() > 1) {
			namespace = convertToNamespaces(names.subList(0, names.size() - 1));
		}

		String datatypeName = names.get(names.size() - 1);
		DemangledDataType dt = new DemangledDataType(mangledSource, demangledSource, datatypeName);
		dt.setName(datatypeName);
		dt.setNamespace(namespace);
		return dt;
	}
Walks backward from the given start position to find the next namespace separator.  This
allows clients to determine if a given position is inside of a namespace.

@param text the text to search
@param start the start position
@param stop the stop position
@return the start index of the namespace entry containing the current {@code start}
        index; -1 if no namespace start is found
Ghidra/Features/GnuDemangler/src/main/java/ghidra/app/util/demangler/gnu/GnuDemanglerParser.java