Skip to content

Issue.3007#3010

Merged
bylins merged 4 commits intomasterfrom
issue.3007
Mar 21, 2026
Merged

Issue.3007#3010
bylins merged 4 commits intomasterfrom
issue.3007

Conversation

@bylins
Copy link
Owner

@bylins bylins commented Mar 21, 2026

No description provided.

bylins and others added 4 commits March 21, 2026 10:13
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>
@bylins bylins merged commit 61852b6 into master Mar 21, 2026
20 checks passed
@bylins bylins deleted the issue.3007 branch March 21, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant