Merged
Conversation
Move 4 functions that are purely string processing: - PruneCrlf (from utils.cpp) - strip trailing \r\n - first_letter (from utils.cpp) - skip color codes to first letter - is_number (from interpreter.cpp) - check if string is all digits - delete_doubledollar (from interpreter.cpp) - remove $$ escaping Declarations added to utils_string.h with usage comments. Existing includes still work (utils.h includes utils_string.h). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move 8 overloads of str_cmp and strn_cmp from utils.cpp to utils_string.cpp. These are pure string comparison functions with no MUD-specific dependencies. Also includes PruneCrlf, first_letter, is_number, delete_doubledollar from previous commit. All declarations in utils_string.h with Russian comments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…s_sep to utils_string (#3007) Move 5 more pure string functions from utils.cpp to utils_string.cpp: - StringReplace - replace char with string in buffer - format_news_message - format news with indents - strl_cpy - safe string copy (OpenBSD strlcpy) - PrintNumberByDigits - number formatting with digit separators - thousands_sep - number formatting with commas All declarations in utils_string.h with Russian comments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…#3007) Move 8 more functions from utils.cpp to utils_string.cpp: - skip_dots, str_str, kill_ems, cut_one_word, ReadEndString - IsValidEmail, isname (with inline overloads), one_word All declarations in utils_string.h with Russian comments. Total: 25 functions now in utils_string. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
No description provided.