summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corestr.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Modernize core_strwildcmp() and core_iswildstr() (#10344) npwoods2022-10-161-2/+2
| | | | | | | * Modernize core_strwildcmp() and core_iswildstr() - Changed parameters from 'const char *' to 'std::string_view' - Removed 16-character limit in core_strwildcmp()
* util/corestr.cpp: Changed core_stricmp to take std::string_view parameters. ↵ npwoods2022-09-151-1/+1
| | | | | (#10287) Note that the implementation is still not UTF-8 aware.
* Change debugger command handler parameter vector element type from ↵ AJR2022-08-021-0/+3
| | | | std::string to std::string_view
* Various minor cleanups. Vas Crabb2022-07-311-13/+7
| | | | 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-0/+21
| | | | (#9922)
* Much more core std::string_view modernization AJR2021-01-201-5/+6
| | | | | | | | | | | | | | | - 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-3/+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-1/+1
|
* Make osd_printf_* use util/strformat semantics. Vas Crabb2019-09-261-2/+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/+7
| | | | | | | | | | | | | 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-7/+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/+7
| | | | similarity to match search strings, match on more useful stuff)
* Better support for screen orientation/geometry: Vas Crabb2018-07-261-4/+4
| | | | | | | | | | | | | | | | | | | | | * Eliminates the need for the horizontal/vertical/LCD/SVG layout files * Screens can now have orientation and physical aspect ratio specified * RASTER/VECTOR defaults to 4:3, LCD/SVG defaults to square pixels at config time * System orientation is applied on top of screen orientation Automatically generated single-screen views and orientation flags in XML output now work correctly for systems with multiple screens in different geometries/orientations, e.g. housemnq, rocnms, stepstag, or netmerc. The "core rotation options" only interact with system orientation. Allowing multi-screen systems to work well with one monitor per emulated screen is a complex topic. System orientation also affects the GFX viewer while screen orientation doesn't. The orientation displayed in the system selection menu is from the system orientation. Let me know if I've broken any systems or use cases. Also, add save state support for std::array/C array nested to any depth.
* Eliminate core_strdup (nw) AJR2018-01-241-8/+0
|
* Returning a reference from various corestr.cpp calls to avoid unnecessary ↵ npwoods2017-09-021-4/+4
| | | | string copies (#2613)
* Changed a few 'const char *' ==> 'const std::string &' in the MAME debugger ↵ npwoods2017-06-241-0/+1
| | | | (#2170)
* Support -listroms for devices (e.g. mpu401 or m68705p3) Vas Crabb2017-05-181-0/+1
| | | | * Also ~67% improvement of device walk in -verifyroms
* No need for osd_malloc, osd_malloc_array and osd_free (nw) Miodrag Milanovic2016-11-111-1/+1
| | | | MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases
* core_i64_hex_format is now a static function in memory.cpp Vas Crabb2016-03-031-4/+0
|
* Get rid of most uses of core_i64_hex_format, all remaining uses are in ↵ Vas Crabb2016-03-011-1/+0
| | | | memory.cpp
* Move more things to type-safe printf Vas Crabb2016-03-011-1/+0
|
* * Support *n conversion in stream_format/string_format Vas Crabb2016-03-011-2/+3
| | | | | | | | | * Make stream_format return characters printed * Add iostreams with std::vector storage * Move to type-safe templates for logerror and popmessage * Remove now-unnecessary I64FMT from calls to logerror/popmessage * Put some lib/util stuff in util:: namespace * Some fixes to Japanese translation
* Replace strformat, strprintf and strcatprintf with type-safe steam_format ↵ Vas Crabb2016-02-281-3/+1
| | | | | | | | | 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-1/+1
| | | | | | - 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
* Fix strreplace, fixes snapshot and dtd issue (nw) Miodrag Milanovic2015-04-231-1/+1
|
* moved all to std::string (nw) Miodrag Milanovic2015-04-221-0/+15
|
* Some compilers have issue with ! signs (nw) Miodrag Milanovic2015-03-211-5/+5
|
* small core_strwildcmp() clarification (nw) Oliver Stöneberg2014-04-071-1/+1
|
* some comments (nw) Oliver Stöneberg2014-03-241-1/+1
|
* Bulk convert files that already had standard BSD license in my name Aaron Giles2013-10-161-31/+2
| | | | to new license tagged form.
* Added a way to handle output for debug messages and debugger itself into ↵ Miodrag Milanovic2011-10-041-1/+2
| | | | | | octal too, and made a few CPU's to give octal output by default. Note that for now just some functions things return octal, will add more, but since this change required clean compile better to put it sooner then later (no whatsnew)
* Cleanups and version bump.mame0134u3 Aaron Giles2009-10-121-13/+13
|
* Assert copyright ownership of core library files, and relicense Aaron Giles2009-10-091-2/+30
| | | | under standard BSD license.
* Added helper function core_i64_hex_format. Replaced several printf cases in ↵ Aaron Giles2009-09-101-0/+5
| | | | | | the debugger with this function to avoid runtime differences on older Windows systems.
* Copyright cleanup: Aaron Giles2008-01-061-1/+1
| | | | | | - removed years from copyright notices - removed redundant (c) from copyright notices - updated "the MAME Team" to be "Nicola Salmoria and the MAME Team"
* Initial checkin of MAME 0.121.mame0121 Aaron Giles2007-12-171-0/+60