Mana
Loading...
Searching...
No Matches
Functions
copynpaste.h File Reference
#include <string>

Go to the source code of this file.

Functions

bool insertFromClipboard (std::string &text, std::string::size_type &pos)
 Attempts to retrieve text from the clipboard buffer and inserts it in text at position \pos.
 

Function Documentation

◆ insertFromClipboard()

bool insertFromClipboard ( std::string &  text,
std::string::size_type &  pos 
)

Attempts to retrieve text from the clipboard buffer and inserts it in text at position \pos.

The characters are encoded in utf-8.

Returns
true when successful or false when there was a problem retrieving the clipboard buffer.

Definition at line 25 of file copynpaste.cpp.