1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00
serenity/Userland/Libraries/LibLine
Shannon Booth e2e7c4d574 Everywhere: Use to_number<T> instead of to_{int,uint,float,double}
In a bunch of cases, this actually ends up simplifying the code as
to_number will handle something such as:

```
Optional<I> opt;
if constexpr (IsSigned<I>)
    opt = view.to_int<I>();
else
    opt = view.to_uint<I>();
```

For us.

The main goal here however is to have a single generic number conversion
API between all of the String classes.
2023-12-23 20:41:07 +01:00
..
CMakeLists.txt LibLine: Use grapheme clusters for cursor management 2023-12-16 22:11:43 +01:00
Editor.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
Editor.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
InternalFunctions.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
KeyCallbackMachine.cpp LibLine: Correct spelling mistake in variable name 2021-07-21 14:15:24 +02:00
KeyCallbackMachine.h AK: Rename GenericTraits to DefaultTraits 2023-11-09 10:05:51 -05:00
Span.h LibLine: Ignore empty spans when stylizing 2022-07-17 00:51:31 +00:00
StringMetrics.h LibLine: Use grapheme clusters for cursor management 2023-12-16 22:11:43 +01:00
Style.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SuggestionDisplay.h Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
SuggestionManager.cpp LibLine: Avoid returning reference to cached suggestion 2023-12-22 10:59:56 +01:00
SuggestionManager.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
VT.h Everywhere: Use nested namespace qualifiers 2023-07-12 10:05:42 +03:30
XtermSuggestionDisplay.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30