mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Add coverage and remove deprecated WideInput.
This commit is contained in:
		| @@ -55,23 +55,6 @@ class StringRef { | ||||
|   std::string* address_ = nullptr; | ||||
| }; | ||||
|  | ||||
| /// @brief An adapter. Own or reference a constant string. For convenience, this | ||||
| /// class convert multiple mutable string toward a shared representation. | ||||
| class WideStringRef { | ||||
|  public: | ||||
|   WideStringRef(std::wstring* ref) : address_(ref) {} | ||||
|   WideStringRef(std::wstring ref) : owned_(std::move(ref)) {} | ||||
|   WideStringRef(const wchar_t* ref) : WideStringRef(std::wstring(ref)) {} | ||||
|   WideStringRef(const char* ref) | ||||
|       : WideStringRef(to_wstring(std::string(ref))) {} | ||||
|   std::wstring& operator*() { return address_ ? *address_ : owned_; } | ||||
|   std::wstring* operator->() { return address_ ? address_ : &owned_; } | ||||
|  | ||||
|  private: | ||||
|   std::wstring owned_; | ||||
|   std::wstring* address_ = nullptr; | ||||
| }; | ||||
|  | ||||
| /// @brief An adapter. Own or reference a constant string. For convenience, this | ||||
| /// class convert multiple immutable string toward a shared representation. | ||||
| class ConstStringRef { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ArthurSonzogni
					ArthurSonzogni