Repository navigation
[DOC] Migration guide from OpenMS::String; remove the docs that still teach it - #10298
Merged
timosachsenberg merged 1 commit intoSep 28, 2026
Conversation
… teach it OpenMS 3.6 replaced OpenMS::String with std::string (#9450, #9468), but there was no migration guide, and several documents still showed the removed API. New page manual/develop/string-migration.md: the replacement for each member of the 3.5 String (checked against the 3.5 String.h and the current StringUtils.h), and the changes the compiler does not catch: - the DataValue/ParamValue conversion to std::string is strict and throws, where String(DataValue) was lenient (use StringUtils::toStr); - `s += 5` without StringUtils.h appends the character 5, and std::to_string writes six decimals; - StringUtils::prefix/suffix(s, c) return the whole string where String::prefix/suffix(c) threw ElementNotFound. Stale references fixed: developer_cpp_guide, coding conventions and TargetedQuantitation Doxygen pages, AGENTS.md and the Copilot instructions (the text of the unmerged 976e0dc), plus the developer FAQ (temporary directories via SystemSettings/TempDir instead of Qt), the new-tool page (ListUtils::create), and the pyOpenMS wrapping guides. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
Contributor
|
Warning Review limit reachedNext included review available in 1 minute. View limit detailsLimit details: You’ve used all 4 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (12)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
3 of 5 tasks
timosachsenberg
deleted the
claude/confident-lovelace-muuw2w-string-migration-docs
branch
September 28, 2026 05:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
OpenMS 3.6 replaced
OpenMS::Stringwithstd::string(#9450, #9468). This is the biggest C++ API break of the release, yet there was no migration guide, and several documents still showed the removed API. This is the fifth of the 3.6 documentation PRs (after #10293, #10296 and #10297); it changes documentation only.New page
manual/develop/string-migration.md("Migrating from OpenMS::String"), linked from the developer page and its toctree:std::string/std::string_view,StringList, theStringUtilsfree functions, and the removed headers.Stringmember and its replacement. Every old name was checked againstString.hofrelease/3.5.0, and every new one against the currentStringUtils.h,ListUtils.handTypeAliases.h.DataValueandParamValueconvert tostd::stringstrictly: they throwException::ConversionErrorfor non-strings (DataValue.h,ParamValue.cpp). The removedString(DataValue)was lenient. The replacement isStringUtils::toStr(), as the header's own note says.s += 5still compiles withoutStringUtils.h, but throughstd::string::operator+=(char): it appends the character with code 5.s + 5does not compile without the header.std::to_string(double)writes six decimals.StringUtils::prefix(s, c)andsuffix(s, c)return the whole string whencis missing, whereas 3.5'sString::prefix(c)andsuffix(c)threwElementNotFound.Stale references fixed
developer_cpp_guide.doxygen,developer_coding_conventions.doxygen,TargetedQuantitation.doxygen,AGENTS.mdand.github/copilot-instructions.md.claude/inspiring-gates-23z7lr, which applied cleanly.developer-faq.md: it recommendedString tmp_dirand Qt'sQDir, but Qt is GUI-only now. It now points toSystemSettings::getTempDirectory()andTempDir.adding-new-tool-to-topp.md:StringList::createdoes not exist; it is nowListUtils::create<std::string>.src/pyOpenMS/CLAUDE.mdandREADME_WRAPPING_NEW_CLASSES.md: theOpenMS::Stringcaster is gone;std::stringusesstd_string_bytes_caster.h.CHANGELOG: the existing BREAKING entry now points to the guide. It is a line inside that entry rather than a new Documentation entry, because #10293, #10296 and #10297 already add lines between every pair of Documentation entries.
Validation: the OpenMS Sphinx docs build without warnings. The new page is in the toctree, and its in-page anchors (
#datavalue-to-stringetc.) resolve.Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
Generated by Claude Code