[SERVER-40476] Remove mongoutils::str Created: 04/Apr/19  Updated: 29/Oct/23  Resolved: 11/Apr/19

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.1.11

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2019-04-08, Dev Tools 2019-04-22
Participants:
Linked BF Score: 82

 Description   

The mongoutils::str utility collection is a legacy problem we should sweep up.
Each element of this library can be removed or folded into other utility libraries.

Namespace mongoutils::str is an inconvenient outlier.
Some of its defs would be better off consolidated into other related libraries.
Some of its defs are pretty easy to replace with new C++ features.



 Comments   
Comment by Githook User [ 11/Apr/19 ]

Author:

{'name': 'Billy Donahue', 'username': 'BillyDonahue', 'email': 'billy.donahue@mongodb.com'}

Message: SERVER-40476 merge contents of utils/stringutils into utils/str.
Branch: master
https://github.com/mongodb/mongo/commit/96ad39f93f670e9e09a1e430898e3b9a8bd70f54

Comment by Githook User [ 11/Apr/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40476 merge contents of utils/stringutils into utils/str.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/c752477947ccf2f0e0626ca288ac94d2b2cd12c0

Comment by Githook User [ 09/Apr/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40476 fix 2a68309b2195411f523ec25f06eefed01e1fa0ac (again)
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/1083ac8167e922652533b2e4b027dd807d695b09

Comment by Githook User [ 09/Apr/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40476 fix 2a68309b2195411f523ec25f06eefed01e1fa0ac
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/9c16c1d2764bb006461b2c8e48ac97b3ec586d38

Comment by Githook User [ 09/Apr/19 ]

Author:

{'name': 'Billy Donahue', 'username': 'BillyDonahue', 'email': 'billy.donahue@mongodb.com'}

Message: SERVER-40476 remove mongoutils::str

Rename utils/mongoutils/str.h => utils/str.h
Rename namespace mongoutils::str => str
Rename mongo::strcasecmp => str::caseInsensitiveCompare.
Branch: master
https://github.com/mongodb/mongo/commit/1041dd848e25e879260d1015d8da4f72ee7993fe

Comment by Githook User [ 09/Apr/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40476 remove mongoutils::str

Rename utils/mongoutils/str.h => utils/str.h
Rename namespace mongoutils::str => str
Rename mongo::strcasecmp =>
str::caseInsensitiveCompare.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/2a68309b2195411f523ec25f06eefed01e1fa0ac

Comment by Githook User [ 08/Apr/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40476 remove mongoutils::str::equals
Branch: master
https://github.com/mongodb/mongo/commit/573921791c4d20e0d1603fd0a200d90d74b65bd5

Generated at Thu Feb 08 04:55:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.