68160e3f22
switch to 100 chars columnwidth and apply clang-format to a few .cpp files
2021-05-11 22:11:41 -04:00
d8291eea7b
Merge branch 'master' into prepare-clang-format
...
# Conflicts:
# src/MOLECULE/bond_fene.h
# src/MOLECULE/bond_fene_expand.h
2021-05-11 21:49:48 -04:00
d1941392d3
disable clang-format for all existing .cpp files (for now)
2021-05-05 23:53:38 -04:00
22e93468d6
simplify code by appling varargs messages and warnings
2021-05-05 18:19:12 -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
e9e0bb71b6
Use varargs version of Error:all() and Error::one() where applicable
2021-04-25 21:30:51 -04:00
60c2d8ea5b
rather than replicate code, expand format to string and call original function
2021-04-25 18:33:37 -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
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
ef858ae70f
silence compiler warnings
2021-04-23 16:19:57 -04:00
d2cdb318ab
apply new logmesg() overload to a bunch of cases.
2021-04-21 23:38:45 -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
4127faacec
substitute unicode general punctuation left/right single/double quotes
2021-04-21 22:02:18 -04:00
b15502ddc8
Add utils::split_lines
2021-03-24 15:53:00 -04:00
c5ab2becd7
fix bug in utils::expand_args()
2021-03-18 12:25:31 -04:00
42895ac6df
Merge pull request #2654 from akohlmey/collected-small-changes
...
Collected small changes
2021-03-16 19:34:54 -04:00
f835d5e69e
refactor utils::expand_args()
2021-03-15 20:50:26 -04:00
ece2433208
use utils::strdup() for duplicating strings
2021-03-15 17:55:19 -04:00
5d795130db
more strict checking of valid input in utils::bounds() with new tests
2021-03-14 17:59:00 -04:00
af9321c4d8
correct output
2021-03-11 06:46:14 -05:00
37afa0e6d5
Merge pull request #2638 from akohlmey/parse-molecule-refactor
...
Further refactor parsing of molecule files
2021-03-08 20:04:07 -05:00
0e6736b614
correct logic for detectig 4-byte UTF-8 characters
2021-03-05 17:57:09 -05:00
73c874a042
whitespace
2021-03-03 21:29:59 -05:00
ca8b268ad5
new convencience function for checking valid IDs (includes unit tests)
2021-03-02 11:02:09 -05:00
4b66c1e570
better error message for incorrect range string
2021-03-01 12:36:29 -05:00
a57311ce3a
whitespace fixes
2021-02-28 12:03:50 -05:00
a89f0f332d
Make regex code in utils thread-safe
...
regex_context_t is only 520 bytes on platforms with 8-byte pointers,
which is reasonable to allocate on the stack instead of as a global in
a userland program.
2021-02-26 15:24:08 -06: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
a9467e830e
update regex code in utils to state of git repo of 2021-02-25
2021-02-25 23:02:46 -05:00
0f07215a2b
add utils::strdup() convenience function
2021-02-04 17:00:02 -05:00
4747e0496a
add a bunch of unicode space equivalents
2021-01-30 02:22:49 -05:00
69e7480fed
update utils::*numeric() functions to use utf8 check and substitution
2021-01-25 20:41:05 -05:00
72168d6780
add utility functions to detect UTF-8 characters and substitute with ASCII equivalents
2021-01-25 01:41:38 -05:00
bddd26ba6c
additional changes needed to merge with current master
2021-01-11 17:26:00 -07:00
0b14770468
merge with current master
2021-01-11 16:13:33 -07:00
51a20175c9
more code formatting consistency changes for loops and conditionals
2020-12-30 09:47:45 -05:00
382ade15fe
more consistent formatting of for/while loops and if statements
2020-12-30 09:09:08 -05:00
2dc80e9521
avoid crash in the case of checking an empty potential file
2020-11-01 15:19:52 -05:00
b931501711
add utils::path_dirname() to complement utils::path_basename()
2020-10-23 20:40:18 -04:00
adf74b3a22
use https://lammps.sandia.gov based URLs consistently
2020-10-21 16:45:30 -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
ceed9284c1
Merge branch 'master' into collected-small-changes
2020-09-04 13:32:47 -04:00
ce78be864a
move date2num() convernience function from Universe class to utils namespace
2020-09-03 17:47:45 -04:00