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
189f6eaa
Commit
189f6eaa
authored
5 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/Traits: add string_view
parent
87f78b9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
AllocatedPath.hxx
src/fs/AllocatedPath.hxx
+1
-0
Traits.hxx
src/fs/Traits.hxx
+3
-0
No files found.
src/fs/AllocatedPath.hxx
View file @
189f6eaa
...
...
@@ -37,6 +37,7 @@
class
AllocatedPath
{
using
Traits
=
PathTraitsFS
;
using
string
=
Traits
::
string
;
using
string_view
=
Traits
::
string_view
;
using
value_type
=
Traits
::
value_type
;
using
pointer
=
Traits
::
pointer
;
using
const_pointer
=
Traits
::
const_pointer
;
...
...
This diff is collapsed.
Click to expand it.
src/fs/Traits.hxx
View file @
189f6eaa
...
...
@@ -44,8 +44,10 @@
struct
PathTraitsFS
{
#ifdef _WIN32
using
string
=
std
::
wstring
;
using
string_view
=
std
::
wstring_view
;
#else
using
string
=
std
::
string
;
using
string_view
=
std
::
string_view
;
#endif
using
char_traits
=
string
::
traits_type
;
using
value_type
=
char_traits
::
char_type
;
...
...
@@ -177,6 +179,7 @@ struct PathTraitsFS {
*/
struct
PathTraitsUTF8
{
using
string
=
std
::
string
;
using
string_view
=
std
::
string_view
;
using
char_traits
=
string
::
traits_type
;
using
value_type
=
char_traits
::
char_type
;
using
pointer
=
value_type
*
;
...
...
This diff is collapsed.
Click to expand it.
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