aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
AgeCommit message (Expand)AuthorFilesLines
2019-11-24add osmo_escape_cstr and osmo_quote_cstrNeels Hofmeyr1-17/+92
2019-11-24utils: add osmo_strnchr()Neels Hofmeyr1-0/+22
2019-11-24utils_test: add osmo_print_n_test()Neels Hofmeyr1-0/+2
2019-11-23fix osmo_escape_str_c() and osmo_quote_str_c()Neels Hofmeyr1-30/+48
2019-11-21utils.c: fix various inaccurate API doc about return valuesNeels Hofmeyr1-4/+3
2019-08-02utils: share static buffer in osmo_str_to{lower,upper}()Pau Espin Pedrol1-8/+8
2019-06-13fix isdigit taking unsigned as inputKévin Redon1-1/+1
2019-06-12core/utils: drop meaningless const from return value of osmo_luhn()Vadim Yanitskiy1-1/+1
2019-06-04make all library-internal static buffers thread-localHarald Welte1-5/+5
2019-05-10Fix osmo_quote_str_c() for strings larger than 32 bytesHarald Welte1-2/+13
2019-04-12Fix incorrect buffer size calculationVadim Yanitskiy1-8/+12
2019-04-12add identifier sanitation for setting FSM instance idsNeels Hofmeyr1-2/+22
2019-04-12add osmo_{escape,quote}_str_buf2() for standard args orderingNeels Hofmeyr1-39/+95
2019-04-11add osmo_str_startswith()Neels Hofmeyr1-0/+14
2019-04-10Add _c versions of functions that otherwise return static buffersHarald Welte1-0/+100
2019-04-03Add _buf() functions to bypass static string buffersHarald Welte1-9/+22
2019-03-29osmo_escape_str_buf: Always copy, don't return input string pointerHarald Welte1-19/+8
2019-02-15get_value_string(): guard against NULLNeels Hofmeyr1-0/+3
2019-01-28add osmo_hexdump_buf() and testNeels Hofmeyr1-11/+38
2019-01-14gsm23003: add osmo_imei_str_valid()Oliver Smith1-0/+31
2018-12-11fix api doc for osmo_bcd2str()Neels Hofmeyr1-1/+1
2018-12-10add osmo_bcd2str()Neels Hofmeyr1-0/+41
2018-09-07add osmo_str_tolower() and _toupper() with testNeels Hofmeyr1-0/+86
2018-09-07api doc: fix osmo_quote_str_*Neels Hofmeyr1-2/+8
2018-06-06Add osmo_isqrt32() to compute 32bit integer square rootHarald Welte1-0/+40
2018-04-09add osmo_quote_str(),osmo_quote_str_buf() and testNeels Hofmeyr1-0/+38
2017-12-18utils: add osmo_escape_str()Neels Hofmeyr1-0/+87
2017-12-17utils: add osmo_separated_identifiers_valid()Neels Hofmeyr1-4/+17
2017-12-17fix osmo_identifier_valid(): only allow printable charactersNeels Hofmeyr1-0/+2
2017-11-21osmo_strlcpy: sanitize: don't memcpy from NULL src even if len is 0Neels Hofmeyr1-1/+2
2017-11-13Fix/Update copyright notices; Add SPDX annotationHarald Welte1-0/+2
2017-10-27osmo_char2bcd(): Implment hex digits a-f and A-FHarald Welte1-1/+8
2017-10-25utils: avoid segfault when calling osmo_strlcpy(src=NULL)Neels Hofmeyr1-1/+1
2017-10-24Introduce osmo_identifier_valid() function to check validity of identifierHarald Welte1-0/+28
2017-10-16[doc] Doxygen documentation on osmo_hexdump print buffer sizeHarald Welte1-0/+6
2017-10-09utils: add osmo_is_hexstr(), add unit testNeels Hofmeyr1-0/+33
2017-06-23Fix warnings: tolower() and similar require ucharPau Espin Pedrol1-2/+2
2017-06-23Fix compilation warnings: use correct log type for uint32_tPau Espin Pedrol1-1/+2
2017-06-23doxygen: unify use of \file across the boardNeels Hofmeyr1-3/+2
2017-06-23doxygen: enable AUTOBRIEF, drop \briefNeels Hofmeyr1-16/+16
2017-06-12update/extend doxygen documentationHarald Welte1-0/+1
2017-02-14osmo_hexparse: allow whitespace in parsed string, add ws testNeels Hofmeyr1-9/+22
2017-01-18doc: fix doxygen 'utils' group closing braceNeels Hofmeyr1-1/+2
2017-01-15doc: clarify osmo_strlcpy() docNeels Hofmeyr1-5/+5
2016-12-21doc: fix typo for osmo_hexparseNeels Hofmeyr1-1/+1
2016-11-26Introduce osmo_strlcpy() function so we can stop using strncpy()Harald Welte1-0/+22
2016-06-13add get_value_string_or_null() to handle unknown itemsNeels Hofmeyr1-3/+18
2016-06-13api doc: get_value_string(): mention composition in static bufferNeels Hofmeyr1-0/+4
2016-05-05Import osmo_{encode,decode}_big_endian() from openbscHarald Welte1-0/+62
2015-09-23utils: add 'returns' doc to osmo_hexparse().Neels Hofmeyr1-0/+1