summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corestr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* util/corestr.cpp, sound/sdl_sound.cpp: Added missing standard library ↵ Julian Sikorski2025-01-211-0/+1
| | | | headers. (#13249)
* Modernize core_strwildcmp() and core_iswildstr() (#10344) npwoods2022-10-161-53/+25
| | | | | | | * Modernize core_strwildcmp() and core_iswildstr() - Changed parameters from 'const char *' to 'std::string_view' - Removed 16-character limit in core_strwildcmp()
* Fixes and cleanup: Vas Crabb2022-09-151-1/+1
| | | | | | | | * gbcolor.xml, bus/gameboy: Renamed slot option for Rocket Games cartridges from "rom_atvrac" to "rom_rocket". * emu/config.cpp: Made error messages more detailed when opening a configuration file fails, and bumped error messages to warning level. * tools/imgtool: Fixed build.
* util/corestr.cpp: Changed core_stricmp to take std::string_view parameters. ↵ npwoods2022-09-151-6/+14
| | | | | (#10287) Note that the implementation is still not UTF-8 aware.
* Change debugger command handler parameter vector element type from ↵ AJR2022-08-021-2/+36
| | | | std::string to std::string_view
* Various minor cleanups. Vas Crabb2022-07-311-3/+3
| | | | There's something wrong when derived classes need to be friends...
* Created a CBM DOS file system driver and added it to the 1541 implementation ↵ npwoods2022-06-301-26/+3
| | | | (#9922)
* Much more core std::string_view modernization AJR2021-01-201-24/+24
| | | | | | | | | | | | | | | - Remove corestr.h from emu.h; update a few source files to not use it at all - Change strtrimspace, strtrimrightspace and core_filename_extract_* to be pure functions taking a std::string_view by value and returning the same type - Change strmakeupper and strmakelower to be pure functions taking a std::string_view and constructing a std::string - Remove the string-modifying version of zippath_parent - Change tag-based lookup functions in device_t to take std::string_view instead of const std::string & or const char * - Remove the subdevice tag cache from device_t (since device finders are now recommended) and replace it with a map covering directly owned subdevices only - Move the working directory setup method out of device_image_interface (only the UI seems to actually use the full version of this) - Change output_manager to use std::string_view for output name arguments - Change core_options to accept std::string_view for most name and value arguments (return values are still C strings for now) - Change miscellaneous other functions to accept std::string_view arguments - Remove a few string accessor macros from romload.h - Remove many unnecessary c_str() calls from logging/error messages
* Low-level #include overhaul AJR2021-01-021-1/+0
| | | | | | | - vecstream.h: Revert changes made in aa29519528cb3dbdbfac56819bea670ed8c56c5d. The std::string_view conversion has been made a non-member function (util::buf_to_string_view) and moved to coretmpl.h. - strformat.h: Remove the using declaration importing util::string_format into the global namespace. It has been moved to emucore.h and a few tool sources; other references have been qualified. - osdcore.h: Split out file, directory and path classes and methods to a new header (osdfile.h), Doxygenizing the documentation comments. - Disaggregate many #includes that were including other standard or custom headers. emu.h now includes basically the same things that it did, but other headers have been streamlined; for instance, emucore.h no longer stealth-includes osdcore.h several ways.
* use C++ library includes (nw) firewave2020-01-221-2/+2
|
* Make osd_printf_* use util/strformat semantics. Vas Crabb2019-09-261-10/+0
| | | | | | | | | | | | | | | | | (nw) This has been a long time coming but it's here at last. It should be easier now that logerror, popmessage and osd_printf_* behave like string_format and stream_format. Remember the differences from printf: * Any object with a stream out operator works with %s * %d, %i, %o, %x, %X, etc. work out the size by magic * No sign extending promotion to int for short/char * No widening/narrowing conversions for characters/strings * Same rules on all platforms, insulated from C runtime library * No format warnings from compiler * Assert in debug builds if number of arguments doesn't match format (nw) Also removed a pile of redundant c_str and string_format, and some workarounds for not being able to portably format 64-bit integers or long long.
* (nw) Clean up the mess on master Vas Crabb2019-03-261-0/+95
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-95/+0
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* Make search not suck as badly (use algorithm derived from Jaro-Winkler ↵ Vas Crabb2019-01-141-0/+95
| | | | similarity to match search strings, match on more useful stuff)
* Eliminate core_strdup (nw) AJR2018-01-241-17/+0
|
* Returning a reference from various corestr.cpp calls to avoid unnecessary ↵ npwoods2017-09-021-9/+9
| | | | string copies (#2613)
* Changed a few 'const char *' ==> 'const std::string &' in the MAME debugger ↵ npwoods2017-06-241-15/+29
| | | | (#2170)
* Support -listroms for devices (e.g. mpu401 or m68705p3) Vas Crabb2017-05-181-0/+10
| | | | * Also ~67% improvement of device walk in -verifyroms
* No need for osd_malloc, osd_malloc_array and osd_free (nw) Miodrag Milanovic2016-11-111-2/+2
| | | | MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-6/+6
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* core_i64_hex_format is now a static function in memory.cpp Vas Crabb2016-03-031-67/+0
|
* Move more things to type-safe printf Vas Crabb2016-03-011-10/+0
|
* Replace strformat, strprintf and strcatprintf with type-safe steam_format ↵ Vas Crabb2016-02-281-28/+0
| | | | | | | | | and string_format Update MAME to use new function Instantiate ODR-used static constant members Make some of the UI code more localisable Remove use of retired functions in tools
* Return std::string objects by value rather than pass by reference AJR2016-01-101-3/+2
| | | | | | - strprintf is unaltered, but strformat now takes one fewer argument - state_string_export still fills a buffer, but has been made const - get_default_card_software now takes no arguments but returns a string
* clang-modernize part 1 (nw) Miodrag Milanovic2015-12-031-7/+7
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+337