31 Commits

Author SHA1 Message Date
InspIRCd Robot
ae3e2db109 Update copyright headers. 2024-06-07 10:37:56 +01:00
Sadie Powell
ccf23ffa0b Move stdalgo::string::{equalsci,tocstr} to utility/string.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
Co-authored-year: 2016
2023-08-11 12:03:09 +01:00
Sadie Powell
70131c8e78 Move stdalgo::string::join to utility/string and templatise separator. 2023-08-11 12:03:09 +01:00
Sadie Powell
704d2c5da0 Slim down stdalgo by removing unused and duplicate functions. 2023-01-24 06:34:44 +00:00
Sadie Powell
b2d86bb8a1 Qualify auto correctly in all cases. 2023-01-10 23:30:34 +00:00
Sadie Powell
1c2e79ea80 Move cull_delete to be inside of Cullable. 2022-12-27 14:12:10 +00:00
Sadie Powell
ee633a943c Replace foo.erase(foo.{size|end}()-1) with foo.pop_back(). 2022-10-01 22:15:23 +01:00
Sadie Powell
44986c7976 Use auto instead of type names where the type is obvious. 2022-09-29 12:54:24 +01:00
Sadie Powell
648f813f8c Switch from NULL to nullptr. 2022-07-22 18:53:21 +01:00
Sadie Powell
d247b77a1e Move stdalgo::map::difference to its own utility header. 2022-01-31 12:24:12 +00:00
Sadie Powell
7a712456f1 Merge branch 'insp3' into master. 2021-05-14 16:54:33 +01:00
InspIRCd Robot
e94b673532 Update copyright headers. 2021-05-14 14:48:39 +01:00
Sadie Powell
942fd2bcfd Switch simple iterator loops to use range-based for loops. 2021-04-07 10:36:11 +01:00
Sadie Powell
0194f799b9 Merge branch 'insp3' into master. 2021-03-31 15:04:15 +01:00
Sadie Powell
952ee5cc60 Fix various documentation comments. 2021-03-31 10:51:51 +01:00
Sadie Powell
4e488cb54d Refactor classbase/CullResult into Cullable/Cullable::Result. 2021-03-02 05:56:56 +00:00
Sadie Powell
601ddbbb25 Replace defaultdeleter with the C++11 one and rename culldeleter. 2021-01-30 19:53:36 +00:00
Sadie Powell
cac18ebf0d Add a method for comparing two maps. 2020-07-24 13:56:16 +01:00
InspIRCd Robot
8f62016f16 Update copyright headers. 2020-01-31 12:48:25 +00:00
Sadie Powell
62483525bb Move DeleteZero to stdalgo::delete_zero. 2020-01-19 15:41:23 +00:00
InspIRCd Robot
aa692dc103 Update copyright headers. 2020-01-11 22:14:43 +00:00
Peter Powell
58a0a7e014 Implement IRCv3 message tag support.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13 21:51:11 +01:00
Peter Powell
9cf448a332 Replace irc::stringjoiner with a generic stdalgo::string::join.
This can also be used with different types of collection containing
values which are not a string.
2018-07-26 21:41:36 +01:00
Attila Molnar
5378b913a6 Add stdalgo::string::replace() and replace_all() 2016-08-22 17:10:41 +02:00
Attila Molnar
90ea1b01b7 Add stdalgo::string::equalsci and use it instead of irc::string for case-insensitive comparison 2016-08-22 16:46:44 +02:00
Attila Molnar
48f8f79317 Add stdalgo::isin() and use it to simplify code 2014-11-01 18:21:30 +01:00
Attila Molnar
fbc73e2078 Add stdalgo::erase() and use it to simplify code 2014-11-01 18:17:04 +01:00
Attila Molnar
ef0fecc856 Add stdalgo::delete_all() that deletes all elements in a container 2014-03-24 16:50:48 +01:00
Attila Molnar
facea19731 Cull ident sockets instead of immediate delete, add stdalgo::culldeleter 2014-03-24 16:44:04 +01:00
Attila Molnar
6d9b2bfee0 Make it possible to customize how SimpleExtItem should delete items 2014-03-24 16:39:20 +01:00
Attila Molnar
671a80a70b Create the stdalgo namespace for container-related algorithms, add stdalgo::vector::swaperase() 2014-03-24 16:33:09 +01:00