mu-server: cleanup find prop handling
Rework the overly long find-handler. Improve parsing of options, and return better return properties (for use in mu4e).
This commit is contained in:
@ -22,15 +22,12 @@
|
||||
|
||||
#include "mu-utils.hh"
|
||||
|
||||
#include <stdexcept>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <iostream>
|
||||
#include <variant>
|
||||
#include <cinttypes>
|
||||
#include <ostream>
|
||||
#include <cassert>
|
||||
|
||||
#include <utils/mu-result.hh>
|
||||
#include <utils/mu-option.hh>
|
||||
@ -55,7 +52,7 @@ struct Sexp {
|
||||
Symbol(const std::string& s): name{s} {}
|
||||
Symbol(std::string&& s): name(std::move(s)) {}
|
||||
Symbol(const char* str): Symbol(std::string{str}) {}
|
||||
Symbol(std::string_view sv): Symbol(std::string{sv}) {}
|
||||
Symbol(const std::string_view& sv): Symbol(std::string{sv}) {}
|
||||
operator const std::string&() const {return name; }
|
||||
std::string name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user