aboutsummaryrefslogtreecommitdiffstats
path: root/lib/strutils.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-05swapon: rename the new --annotation option to --annotateBenno Schulenberg1-1/+1
2025-09-24lib/strutils: add helper function for --annotation optionChristian Goeschel Ndjomouo1-0/+14
2025-07-15lib/strutils: add ul_optstr_get_value()Karel Zak1-0/+19
2025-06-30lib/strutils: add ul_ prefix to split() functionKarel Zak1-1/+1
2025-06-30lib/strutils: add ul_ prefix to strappend() functionsKarel Zak1-4/+4
2025-06-30lib/strutils: add ul_ prefix to strconcat() functionsKarel Zak1-5/+5
2025-06-24include/strutils: add ul_strtou16()Karel Zak1-0/+13
2025-06-06remove "Copyright (C) ...." notes from files that claim no copyrightBenno Schulenberg1-3/+3
2025-05-29lib/strutils: call gettext() only when argument of --hyperlink is invalidBenno Schulenberg1-2/+2
2025-05-13treewide: add ul_ to parse_switch() function nameKarel Zak1-3/+3
2025-05-13treewide: add ul_ to parse_size() function nameKarel Zak1-2/+2
2025-05-13treewide: add ul_ to parse_range() function nameKarel Zak1-1/+1
2025-05-05Merge branch 'PR/parse_switch' of https://github.com/karelzak/util-linux-workKarel Zak1-4/+13
2025-05-05fix and add parse_switch() testKarel Zak1-1/+10
2025-05-05strutils: move an error message to where it is used, and improve itBenno Schulenberg1-4/+4
2025-04-22strutils.c: ignore escape characters while parsing options.WanBingjiang1-2/+3
2024-12-11Merge branch 'PR/libsmartcols-hyperlinks' of https://github.com/karelzak/util...Karel Zak1-0/+14
2024-11-28include: add functions to implement --hyperlinkKarel Zak1-0/+14
2024-11-27include/optstr: improve optstr parsingKarel Zak1-0/+29
2024-08-14Fix typosTobias Stoeckmann1-1/+1
2023-11-28libmount: accept '\' as escape for options separatorKarel Zak1-1/+1
2023-11-20include/strutils: add ul_strtold()Karel Zak1-8/+15
2023-10-23lib/strutils: add ul_next_string()Karel Zak1-0/+9
2023-09-30lib/strutils: add strfappend and strvfappendMasatake YAMATO1-0/+28
2023-06-26lib/strutils: fix typoJakub Wilk1-1/+1
2023-01-06strutils: add function strtotimespec_or_errThomas Weißschuh1-0/+9
2023-01-06lib/strutils: fix compiler errorThomas Weißschuh1-0/+3
2023-01-05lib/strutils: include strings.hKarel Zak1-0/+1
2023-01-04include/cctype: add c_strcasecmp() and c_strncasecmp()Karel Zak1-1/+25
2022-11-25dmesg: allow specification of level rangeThomas Weißschuh1-2/+22
2022-05-02lib/strutils: add ul_strchr_escaped()Karel Zak1-0/+35
2022-04-21lib/strutils: make sure ul_strtoXX functions always set errnoKarel Zak1-8/+13
2022-04-19lib/strutils: improve strtoul_or_err() for negative numbersKarel Zak1-42/+0
2022-03-30libmount: move optstr parsing to lib/Karel Zak1-0/+70
2021-09-04Fix misspellingsRafael Fontenelle1-1/+1
2021-08-05lib/strutils: add strappend()Karel Zak1-0/+25
2021-08-05lib/strutils: rename strappend() to strconcat()Karel Zak1-5/+8
2021-06-24include/strutils: consolidate string to number conversionKarel Zak1-95/+76
2021-06-22include/strutils: cleanup strto..() functionsKarel Zak1-72/+102
2021-06-15lib/strutils: make test_strutils_normalize() more robustKarel Zak1-3/+9
2021-06-14lib/strutils: improve normalize_whitespace()Karel Zak1-6/+15
2021-05-06lib/strutils: assume 64-bit time_tKarel Zak1-3/+32
2021-02-23lib/strutils: add ul_stralnumcmp()Karel Zak1-1/+37
2020-11-13lib/strutils: add normalize_whitespace()Karel Zak1-4/+28
2020-06-09lib/strutils: use directly err()Karel Zak1-1/+1
2020-06-09lib/strutils: remove unnecessary includeKarel Zak1-2/+0
2020-06-09build-sys: remove redundard includesKarel Zak1-1/+0
2020-05-18lib/strutils: fix parse_size() for large numbersKarel Zak1-4/+14
2020-04-28lib/strutils: fix floating point exceptionKarel Zak1-1/+1
2020-04-20[clang-tidy] do not use else after returnRosen Penev1-10/+9
2020-04-17lib/strutils: fix uint64_t overflowKarel Zak1-1/+4
2020-04-15ilib/strutils: fix rounding in size_to_human_string()Karel Zak1-11/+32
2020-01-28lib/strutils: add test for strdup_to_struct_member()Karel Zak1-1/+37
2020-01-13lib: add _PATH_TMP fallbackKarel Zak1-0/+2
2019-11-07lib: add missing license headersKarel Zak1-1/+3
2019-05-15lib/strutils: keep static analyzer happy [coverity scan]Karel Zak1-1/+3
2019-05-13lib/strutils: parse_size() fix frac digit calculationKarel Zak1-10/+32
2019-05-13lib/strutils: parse_size() fix frac with zerosKarel Zak1-7/+12
2019-02-12lib/strutils: support two decimal places in size_to_human_string() outputKarel Zak1-4/+11
2018-09-14lib/strutils: return from xstrmode()Karel Zak1-1/+3
2018-07-20lib/strutils: follow const in parse_size()Karel Zak1-13/+15
2018-07-18lib/strutils: remove redundant conditionKarel Zak1-1/+1
2018-05-28lib/strutils: fix strnlen() fallbackKarel Zak1-2/+2
2017-06-22lib: fix strutils.h, remove STRTOXX_EXIT_CODERuediger Meier1-0/+6
2017-04-03lib/strutils: fix typos in huge size suffixesKarel Zak1-3/+3
2017-01-28lib/strutils: return end pointer by isdigit_string()Karel Zak1-2/+7
2017-01-04lib: use unique ifdefs for testsKarel Zak1-2/+2
2016-11-09lib,strutils: add strtoux[16|32|64]_or_err functionsHeiko Carstens1-6/+38
2016-08-08libmount: ignore redundant slashesKarel Zak1-28/+72
2016-05-31misc: Fix various typosSebastian Rasmussen1-1/+1
2016-05-11lib/timeutils: add strxxx_iso() functionsKarel Zak1-0/+17
2016-04-04lib/strutils: use int for fgetc()Karel Zak1-1/+1
2016-03-22partx: fix --nr usageKarel Zak1-1/+1
2016-03-15libmount: improve conversion from root= to the devnameKarel Zak1-0/+9
2016-03-07misc: never cast void* from malloc(3) and friendsRuediger Meier1-1/+1
2016-02-21lib/strutils: parse_size(), sync errno and return valueRuediger Meier1-2/+4
2016-02-21lib/strutils: add more ERANGE messagesRuediger Meier1-12/+16
2016-02-21lib/strutils: fix errno usage in strtoint functionsRuediger Meier1-10/+11
2016-02-18lib: rename strmode() and setmode()Ruediger Meier1-1/+1
2016-02-11misc: fix some printf format stringsRuediger Meier1-1/+1
2015-08-31lib/strutil: fix parse_switch resource leak [coverity scan]Andreas Henriksson1-2/+5
2015-06-30lib/strutils: make strmode() more genericKarel Zak1-17/+19
2015-06-29rtcwake: improve read_clock_mode()Sami Kerola1-0/+12
2015-05-15lib/strv: add new functions (from systemd)Karel Zak1-0/+100
2015-04-22lib/strutils: fix string_add_to_idarray() int vs. size_tKarel Zak1-3/+2
2015-02-24lib/strutils: extend parse_switch() to accept more optionsKarel Zak1-6/+24
2015-02-24lib/strutils: move parse_switch() from setterm(1) to librarySami Kerola1-0/+8
2015-02-02lib/strutils: accept not just 'B' but also lowercase 'b' in a size suffixBenno Schulenberg1-2/+2
2014-07-13textual: fix some typosSami Kerola1-1/+1
2014-04-08libsmartcols: rewrite test code to tree(1)-like utilKarel Zak1-1/+1
2014-03-11lib/strutils: fix parse_size() return codeKarel Zak1-1/+3
2014-03-11lib/strutils: support dec.points in parse_size()Karel Zak1-2/+43
2014-03-11lib/strutils: use proper return codes in parse_size()Karel Zak1-9/+14
2013-09-10lib/strutils: optimalize {starts,ends}with()Karel Zak1-66/+0
2013-08-29lib/strutils: move *swith() functions to private librarySami Kerola1-0/+67
2013-03-13lib/strutils: add strtotimeval_or_err()Karel Zak1-0/+10
2013-03-11lib/strutils: simplify strtosize(), return info about suffixKarel Zak1-37/+28
2013-03-11fdisk: add callback for ask-numbers APIKarel Zak1-0/+10
2013-01-30Implement mempcpy() in terms of memcpy() if mempcpy() is unavailableDaniel Trebbien1-0/+7
2012-07-26lib/strutils: add string_add_to_idarray() - parse and add to id listMilan Broz1-0/+27
2012-06-05lib/strutils: circumvent missing localeconv()maximilian attems1-1/+1
2012-05-15lib/strutils: create type specific strtoxx_or_err()Karel Zak1-21/+74
2012-05-03lib/strutils: add string_to_bitmask()Karel Zak1-0/+43
2012-04-23Fix typos found by misspellingsBernhard Voelker1-1/+1
2012-04-10strutils: return success on test programDavidlohr Bueso1-1/+1
2012-03-30lib/strutils: add strtosize_or_err, clean upKarel Zak1-37/+45
2012-02-23lib/strutils: move array bounds check in string_to_idarray() to appropriate p...Chandan B Rajenda1-2/+2
2011-11-08libmount: ignore tailing slash in netfs source pathsPetr Uzel1-0/+32
2011-10-17lib,strutils: add default value to parse_range()Davidlohr Bueso1-3/+4
2011-10-12lib,strutils: share parse_range()Davidlohr Bueso1-1/+44
2011-09-29lib: [strutils] add strtod_or_err() functionSami Kerola1-0/+24
2011-08-01lib: [strutils.c] fix compiler warnings [-Wsign-compare]Karel Zak1-1/+1
2011-07-27include: [strutils.c] add list parsersKarel Zak1-0/+95
2011-06-01lib: add strtoul_or_err() functionSami Kerola1-0/+24
2011-05-26This adds a second parameter to size_to_human_string() to return aFrancesco Cosoleto1-8/+25
2011-02-21lib: [strutils.c] more robust strtol checksKarel Zak1-2/+2
2011-02-21strutils: new wrapper function strtoll_or_errSami Kerola1-0/+24
2011-02-15lib: [strutils] avoid integer overflow on large valuesDave Reisner1-4/+14
2011-02-14build-sys: provide alternatives for err, errx, warn and warnxFabian Groffen1-1/+1
2011-01-04remove duplicate includesKarel Zak1-4/+0
2011-01-03tests: fix strtosize() testKarel Zak1-0/+24
2010-12-09partx: complete rewriteDavidlohr Bueso1-0/+49
2010-11-24lib: [strutils] move strmode() from namei.c to strutils.cKarel Zak1-0/+40
2010-11-23lib: [strutils] general purpose string handling functionsDavidlohr Bueso1-0/+186