Eugene Sandulenko
a95427f964
COMMON: Add Common::reverse() implementation with iterators
2024-08-06 21:55:09 +02:00
Cameron Cawley
0ad948d51a
COMMON: Add uninitialized move functions
2024-07-20 14:17:15 +02:00
Eugene Sandulenko
8e66c9efea
COMMON: STD: Added displaimer explaining the purpose
2024-07-08 15:47:47 +02:00
grisenti
88062119f9
COMMON: Fix documentation for lower/upperBound
2023-06-01 23:18:12 +02:00
grisenti
9380f2f7da
COMMON: Improve documentation for lower/upperBound
2023-06-01 19:10:59 +02:00
grisenti
4248f351f3
COMMON: add upperBound and lowerBound to algorithm
2023-06-01 18:28:01 +02:00
hax0kartik
b8f6af8dfe
COMMON: Update documentation for Common::remove()
2023-06-01 16:32:03 +02:00
hax0kartik
698bb261d1
COMMON: Add remove() to algorithm
2023-06-01 16:32:03 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Orgad Shaneh
a05e54f00c
JANITORIAL: Remove trailing whitespaces
2021-05-04 11:46:30 +03:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs
2021-04-15 21:20:36 +02:00
Bartosz Gentkowski
b6c5d415ee
small edits, to be squashed
2020-10-05 13:43:50 +02:00
Bartosz Gentkowski
59fce86705
DOXYGEN: updates in first header files
...
Add and improve doxygen blocks in header files:
- achievements.h
- algorithm.h
- archive.h
- array.h
- bitstream.h
2020-10-05 13:43:50 +02:00
Bartosz Gentkowski
ec24687ce4
DOXYGEN: Add doxygen groups to header files in the common folder
...
Adding @defgroup and @ingroup doxygen tags into all headers
in the common folder that contain doxygen blocks.
This improves the structure, readability, and findability
of information in the resulting output.
This commit targets purely structure and does not deal with
the content of the currently existing doxygen documentation.
2020-10-04 18:25:50 +02:00
Cameron Cawley
c3c3137ab3
BACKENDS: Move nextHigher2() into common/algorithm.h
2019-12-14 17:09:18 +02:00
Adrian Frühwirth
a20f90cbb7
JANITORIAL: Fix formatting
2018-04-22 00:56:21 +02:00
Eugene Sandulenko
355c4fa646
JANITORIAL: Remove more trailing spaces
2016-10-09 15:02:02 +02:00
Borja Lorente Escobar
a19b50ddf2
COMMON: Add replace functions to Common and String.
...
COMMON: Add replacement to common/algorithm.h
COMMON: Intermediate commit to show doubts.
COMMON: Basic String::replace() methods implemented.
COMMON: Fix typo in the algorithm.h documentation.
COMMON: Fix documentation of String::replace()
COMMON: Fix formatting issues in method signatures.
COMMON: Add assert and reformat loops in str and algorithm.
COMMON: Fix typo in comment.
COMMON: Fix style in string test cases.
COMMON: Add Doxygen documentation to algorithm and String.
COMMON: Add Doxygen documentation to algorithm and String.
COMMON: Add Doxygen documentation to algorithm.
COMMON: Fix style in algorithm comments.
COMMON: Add Doxygen comments to String.
COMMON: Add Doxygen comments to algorithm test function.
COMMON: Add String support for substring replace.
COMMON: Fix string replace to comply with STL
COMMON: Fix documentation on string replace
COMMON: Fix style in string replace
COMMON: Fix unwanted reference problem in String::replace().
COMMON: Fix indentation in comments for replace
COMMON: Fix indentation in replace
COMMON: Fix comments in String::replace to match implementation.
COMMON: Remove assert to allow for not-null-terminated character arrays
COMMON: Add new test for String::replace
COMMON: Fix broken comments on String::replace
COMMON: Fix sharing bug on ensureCapacity
COMMON: Remove superfluous call to makeUnique()
2016-05-16 22:01:21 +02:00
Bertrand Augereau
1311fe5c49
COMMON: Avoid useless (and dangerous when cctor/operator= don't support it) SWAP(x, x) in sorting
2015-11-10 20:08:19 +01:00
Johannes Schickel
854e22b38b
COMMON: Make GPL headers consistent in themselves.
2014-02-18 02:39:33 +01:00
Johannes Schickel
c2fd35c9ed
COMMON: Make value parameter of fill a const reference.
2011-11-16 18:16:40 +01:00
Johannes Schickel
61795739f8
COMMON: Rename Common::set_to to Common::fill.
...
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Christoph Mallon
84220d2ca0
COMMON: Remove superfluous Common:: qualifiers.
2011-08-07 15:19:07 +02:00
Christoph Mallon
23a0f5318c
JANITORIAL: Remove trailing empty lines.
2011-08-07 13:53:33 +02:00
Johannes Schickel
263adb5cfc
COMMON: Limit pragma warning use in algorithm.h to MSVC.
...
Since we only want to disable a MSVC specific warning with it and other
compilers might have different warnings numbers it is safer to only target
MSVC here.
2011-05-29 21:12:42 +02:00
Littleboy
89e954c653
COMMON: Silence MSVC warning for Common::gcd calls with an unsigned type
2011-05-24 00:56:48 -04:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
2184326dbc
COMMON: Add comment that explains strange <= checks in gcd()
...
svn-id: r55838
2011-02-09 00:11:39 +00:00
Johannes Schickel
4306a65577
COMMON: Revert attempt to silence MSVC warning in Common::gcd.
...
svn-id: r53506
2010-10-15 18:20:01 +00:00
Johannes Schickel
5c102d4f08
COMMON: Silence gcc warning introduced with r53496.
...
svn-id: r53497
2010-10-15 14:18:58 +00:00
Johannes Schickel
8fc3c21bd0
COMMON: Attempt to silence MSVC warning in Common::gcd.
...
svn-id: r53496
2010-10-15 14:14:51 +00:00
Johannes Schickel
f75d84cbdd
JANITORIAL: Some small explanation about stability of sorting algorithms.
...
Special thanks to lskovlun for his suggestion to add this.
svn-id: r51524
2010-07-30 23:42:50 +00:00
Johannes Schickel
8e8023d7cc
JANITORIAL: Add comment about the stability of Common::sort.
...
svn-id: r51522
2010-07-30 23:24:22 +00:00
Max Horn
00cd966f3d
Some tweaks and fixes for Common::Rational
...
* Fix Common::gcd to work with negative input
* This fixes a bug in Common::Rational's multiplication code
* Add some more basic unit tests (including one which checks for
the now fixed multiplication bug)
* cleanup
svn-id: r49064
2010-05-17 22:07:58 +00:00
Matthew Hoops
811fc0e7ec
Add the Common::Rational class from patch #2963496 (VideoDecoder Rewrite)
...
svn-id: r49061
2010-05-17 20:53:04 +00:00
Johannes Schickel
a0f90fd603
Add common/util.h include to common/algorithm.h for SWAP.
...
This should fix the compilation with clang++, see bug report
#2971226 "COMMON: Compile error - SWAP undeclared in algorithm.h".
svn-id: r48307
2010-03-20 12:13:37 +00:00
Max Horn
ebbc33c3ca
Spelling: Par*r*tition
...
svn-id: r46688
2009-12-28 21:04:35 +00:00
Vladimir Menshakov
3936861b7c
allowed list to be sorted with default comparator
...
svn-id: r46644
2009-12-27 14:13:39 +00:00
Johannes Schickel
69ba1ee04d
Some more code format fixes.
...
svn-id: r46641
2009-12-27 13:58:00 +00:00
Vladimir Menshakov
cddb95d9c3
more code convention fixes
...
svn-id: r46640
2009-12-27 13:33:12 +00:00
Vladimir Menshakov
17380ba06e
added whitespace to conform code convention
...
svn-id: r46639
2009-12-27 13:25:07 +00:00
Vladimir Menshakov
668ecc5d38
replaced bubble sort with quick sort
...
added distance(a, b) functions
svn-id: r46638
2009-12-27 13:19:44 +00:00
Max Horn
f242266f6d
Change a couple places from 'end of namespace' to 'End of namespace', for consistency
...
svn-id: r44634
2009-10-04 21:26:33 +00:00
Jordi Vilalta Prat
b1999a2a16
Fixed indentation and removed whitespaces at the end of line
...
svn-id: r35481
2008-12-22 11:22:15 +00:00
Johannes Schickel
0a95a4814c
Added documentation for the functions in algorithm.h.
...
svn-id: r33416
2008-07-29 17:00:15 +00:00
Johannes Schickel
d8e1f5a060
- make Common::sort supporting a function object to compare two entries instead of operator <
...
- adapt parallaction to use the new Common::sort function
svn-id: r30692
2008-01-28 22:05:23 +00:00
Max Horn
becce923fc
BE -> AE
...
svn-id: r30376
2008-01-10 12:22:15 +00:00
Johannes Schickel
cec8b98201
Added 'specialized' versions of set_to for char*, signed char* and unsigned char* 'In' parameters.
...
svn-id: r29523
2007-11-17 00:19:27 +00:00
Johannes Schickel
89edc3c7eb
Adds Common::set_to which sets elements from the range [first, last) to value.
...
svn-id: r29080
2007-09-24 00:07:28 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00