@Override
	public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
			throws CancelledException {

		for (Data data : DefinedStringIterator.forProgram(program)) {
			Address start = data.getAddress();
			int length = data.getLength();

			if (length == getMaxStringLength(program, start, length)) {
				continue;
			}

			recurseString(program, start, length);
			monitor.checkCancelled();
		}

		return true;
	}
Splits non-terminated strings into separate strings
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/rust/RustStringAnalyzer.java