a9bccee7b2
add utility to convert a string to lowercase
2021-10-06 17:43:41 -04:00
37bfe3d0ce
integrate platform sub-namespace into source code and documentation
...
this updates function calls to functions that have been moved from
the utils namepsace or the Info class to platform::
2021-10-02 16:55:11 -04:00
c3d34e8656
only accept lower case to be consistent with the rest of the input
2021-09-21 14:18:23 -04:00
6adac6b637
Merge branch 'master' into parse-logical-keyword
2021-09-20 20:41:48 -04:00
860a93aa8b
fix spelling issues
2021-09-19 18:32:45 -04:00
61c71c6605
return int instead of bool to minimize code changes
2021-09-19 18:07:56 -04:00
bca99f684f
update list and order of include files from include-what-you-use analysis
2021-09-18 14:16:48 -04:00
db76edbade
implement utils::current_date() convenience function to reduce replicated code
2021-09-18 09:05:35 -04:00
cef100991f
add utils::logical() function to complement the *numeric() functions
2021-09-16 17:52:51 -04:00
eb80102871
spelling
2021-09-15 13:51:31 -04:00
9cdb83a24d
support utils::guesspath() also on Windows
2021-09-08 18:17:14 -04:00
cfa94dfbaf
add support for utils::guesspath() on macos
2021-09-08 15:14:06 -04:00
898f8086db
consolidate binary() member functions of Comm and Balance into utils::binary_search()
2021-09-06 16:58:14 -04:00
5f2b947b99
fix typo
2021-07-29 11:48:24 -04:00
6d292b1bf2
small tweaks
2021-07-16 14:51:27 -04:00
51d082ff2b
reformat comments
2021-07-11 14:57:00 -04:00
09c19a936b
update URLs in source code and manual
2021-05-24 14:18:20 -04:00
7fcd449864
apply clang-format to all headers with some exceptions
2021-05-14 19:16:07 -04:00
a7b514e373
fix issue with breathe's doxygen to sphinx translation
2021-05-12 18:03:05 -04:00
a9ff9312d6
Merge remote-tracking branch 'origin/master' into varargs-log-error-functions
2021-04-28 18:13:31 -04:00
7b1b57aa9b
rename utils::fgets_trunc_nl() to utils::fgets_trunc()
2021-04-27 18:32:51 -04:00
b65bc86718
new utility function fgets_trunc_nl()
2021-04-27 16:13:45 -04:00
6b04ebd617
Merge branch 'master' into varargs-log-error-functions
2021-04-26 13:27:58 -04:00
a0b0681cc8
rename _internal_logmesg() to fmtargs_logmesg()
...
vlogmesg() can be too easily confused with logmesg()
2021-04-25 17:20:36 -04:00
b0cd6b3ef7
improve docs also for related functions
2021-04-24 22:08:28 -04:00
8e5e995188
add docs for new utility function
2021-04-24 21:32:29 -04:00
539ab02365
provide more generic implementation of Comm::read_lines_from_file() in utils
2021-04-24 21:05:11 -04:00
df7fe4431f
make LAMMPS homepage URL and C++ indicator comments consistent
2021-04-22 21:26:07 -04:00
3aec5c6484
tweak docs for logmesg() overload
2021-04-21 23:50:13 -04:00
0cf1252f1f
add overload to utils::logmesg() that handles format strings and variable arguments
...
this reduces utils::logmesg(lmp,fmt::format(...)) to utils::logmesg(lmp,...)
while still allowing just a single string argument.
2021-04-21 22:52:32 -04:00
b15502ddc8
Add utils::split_lines
2021-03-24 15:53:00 -04:00
ca8b268ad5
new convencience function for checking valid IDs (includes unit tests)
2021-03-02 11:02:09 -05:00
dfae88cf13
address spelling issues
2021-02-25 23:11:41 -05:00
92d892aa2d
add new utility function utils::strfind()
2021-02-25 23:03:17 -05:00
0f07215a2b
add utils::strdup() convenience function
2021-02-04 17:00:02 -05:00
f5bf10e00f
remove dead code
2021-02-04 15:34:56 -05:00
3e07711739
simplify using C++11 syntax
2021-02-04 14:35:39 -05:00
dadea34663
reformat comment
2021-02-04 14:35:39 -05:00
05f08c0799
avoid false positives in has_utf8() check
2021-01-25 21:44:38 -05:00
72168d6780
add utility functions to detect UTF-8 characters and substitute with ASCII equivalents
2021-01-25 01:41:38 -05:00
b931501711
add utils::path_dirname() to complement utils::path_basename()
2020-10-23 20:40:18 -04:00
9a6dfbc0ee
add some cross referencing
2020-09-18 13:45:33 -04:00
4b25eb1a34
small tweaks
2020-09-15 19:08:40 -04:00
93a0d4c096
fix up some comments
2020-09-12 14:26:34 -04:00
f1ef7d85a8
T2345: Replace instances of NULL with nullptr
...
The following changes have been applied to src and lib folders:
regex replace: ([^"_])NULL ⇒ \1nullptr (8968 chgs in src, 1153 in lib)
Manually find/change: (void \*) nullptr ⇒ nullptr (1 case)
regex find: ".*?nullptr.*?"
Manually ~14 cases back to "NULL" in src, ~2 in lib
regex finds a few false positive where nullptr appears between two
strings in a function call
2020-09-12 09:34:38 -06:00
485a169ef2
move merge sort to utils namespace
2020-09-06 17:38:53 -04:00
ce78be864a
move date2num() convernience function from Universe class to utils namespace
2020-09-03 17:47:45 -04:00
22ccde1d13
modernize utils::bounds() implementation and remove duplicate definition.
2020-08-31 12:58:00 -04:00
cf11945e21
get rid of utils::boundsbig() by making it a template function with two specializations
2020-08-31 11:25:43 -04:00
8d2c16ad66
remove trailing whitespace
2020-08-30 00:31:04 -04:00