PlaylistFile: move memchr() call to class Path
This commit is contained in:
@@ -122,6 +122,16 @@ public:
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Does the path contain a newline character? (Which is
|
||||
* usually rejected by MPD because its protocol cannot
|
||||
* transfer newline characters).
|
||||
*/
|
||||
gcc_pure
|
||||
bool HasNewline() const {
|
||||
return strchr(value, '\n') != nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the path to UTF-8.
|
||||
* Returns empty string on error or if this instance is "nulled"
|
||||
|
Reference in New Issue
Block a user