Cockatrice/libcockatrice_deck_list/libcockatrice/deck_list
BruebachL 69d32ed853
[DeckList] Extract plain-text deck parser into own file (#7305)
* [DeckList] Extract plain-text deck parser into own file

DeckList::loadFromStream_Plain was a 160-line god-method mixing
deck clearing, name/comment detection, sideboard heuristics, set
and multiplier extraction and normalization. The parsing logic
moves verbatim into DeckListPlainText::parse() so it lives in a
dedicated, testable unit; DeckList keeps a thin delegating wrapper
and still refreshes the deck hash exactly as before (also on the
empty-input path, to match cleanList's original behavior). The
*F* foil suffix handling is relocated unchanged.

* [DeckList] Harden plain-text parser regexes and move metadata clearing up

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-09-18 11:58:30 +02:00
..
tree [DeckList] Remove dead card XML readElement (#7301) 2026-09-18 11:58:29 +02:00
deck_list.cpp [DeckList] Extract plain-text deck parser into own file (#7305) 2026-09-18 11:58:30 +02:00
deck_list.h [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
deck_list_history_manager.cpp [DeckList] Deduplicate undo/redo state switching (#7302) 2026-09-18 11:58:29 +02:00
deck_list_history_manager.h [DeckList] Deduplicate undo/redo state switching (#7302) 2026-09-18 11:58:29 +02:00
deck_list_memento.h [Fix-Warnings] Mark const getters as [[nodiscard]] (#6365) 2025-11-28 21:38:54 +01:00
deck_list_node_tree.cpp [DeckList] Drop const from zone lookup that creates nodes (#7304) 2026-09-18 11:58:30 +02:00
deck_list_node_tree.h [DeckList] Drop const from zone lookup that creates nodes (#7304) 2026-09-18 11:58:30 +02:00
deck_list_plain_text_parser.cpp [DeckList] Extract plain-text deck parser into own file (#7305) 2026-09-18 11:58:30 +02:00
deck_list_plain_text_parser.h [DeckList] Extract plain-text deck parser into own file (#7305) 2026-09-18 11:58:30 +02:00
playmat_resolver.cpp [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
playmat_resolver.h [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
sideboard_plan.cpp style: Add braces to all control flow statements (#6887) 2026-05-16 19:19:53 +02:00
sideboard_plan.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00