Veloman Yunkan
068555de38
Paths in the error are put in single quotes
2024-03-06 11:43:43 +01:00
Veloman Yunkan
0168764f4c
NameMapper detects all naming conflicts
...
Also this change leads to the change in the mapping (since conflicts
that previously went undetected and just overwrote the existing entry
are now rejected).
2024-03-06 11:43:43 +01:00
Veloman Yunkan
181893d31a
Cleanup after previous change
...
- Got rid of the continue statement
- Renamed the function parameter
- Fixed indentation
2024-03-06 11:43:43 +01:00
Veloman Yunkan
5b9daf0d9d
Extracted HumanReadableNameMapper::mapName()
...
No cleanup of the new function was performed to keep the diff minimal.
2024-03-06 11:43:43 +01:00
Matthieu Gautier
1dc9705597
Introduce LibraryPtr and ConstLibraryPtr.
...
As we enforce the use of Library through a shared_ptr, let's simplify
user life (and code) with new "type".
2023-10-05 16:37:22 +02:00
Matthieu Gautier
efcbf6ef1e
Make the `UpdatableNameMapper` keep a `shared_ptr`.
...
Same as `Manager`, we want to be sure that `Library` actually exists
when we use it.
2023-09-25 16:31:55 +02:00
Veloman Yunkan
298247ca9b
Renamed NameMapperProxy -> UpdatableNameMapper
2021-11-30 18:20:27 +04:00
Veloman Yunkan
6199c11505
NameMapperProxy respects the withAlias flag
2021-11-30 18:18:16 +04:00
Veloman Yunkan
8fffa59974
Added NameMapperProxy from kiwix/kiwix-desktop#714
...
The right place for NameMapperProxy introduced by kiwix/kiwix-desktop#714 is in
libkiwix (so that it can be reused in kiwix-serve).
2021-11-30 18:18:16 +04:00
Veloman Yunkan
5f3c34ed93
NameMapper's API is now const
2021-11-22 21:06:27 +04:00
Matthieu Gautier
d90a27af11
Fix nameMapper initialization.
2019-08-12 16:16:26 +02:00
Matthieu Gautier
d90f8b0f05
Add a name_mapper mapping the HumanReadable name to the id.
2019-08-11 11:30:43 +02:00