Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
1415bac1
Commit
1415bac1
authored
Apr 24, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/AllocatedPath: add Android-only FromUTF8(std::string&&) overload
parent
7a98a784
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
AllocatedPath.hxx
src/fs/AllocatedPath.hxx
+13
-0
No files found.
src/fs/AllocatedPath.hxx
View file @
1415bac1
...
...
@@ -157,6 +157,19 @@ public:
return
AllocatedPath
(
std
::
move
(
fs
));
}
#ifdef ANDROID
gcc_pure
static
AllocatedPath
FromUTF8
(
std
::
string
&&
utf8
)
noexcept
{
/* on Android, the filesystem charset is hard-coded to
UTF-8 */
/* note: we should be using FS_CHARSET_ALWAYS_UTF8
here, but that would require adding a dependency on
header Features.hxx which I'd like to avoid for
now */
return
FromFS
(
std
::
move
(
utf8
));
}
#endif
/**
* Convert a UTF-8 C string to an #AllocatedPath instance.
* Returns return a "nulled" instance on error.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment