Translation
#include <translation.h>
Public Member Functions | |
Translation (slimt::Response &&response) | |
operator bool () const | |
QString | translation () const |
Detailed Description
Wrapper around a translation response from the bergamot service.
Hides that interface from the rest of the Qt code, and provides utility functions to access alignment information with character offsets instead of byte offsets.
Definition at line 26 of file translation.h.
Constructor & Destructor Documentation
◆ Translation() [1/2]
Translation::Translation | ( | ) |
Definition at line 12 of file translation.cpp.
◆ Translation() [2/2]
Translation::Translation | ( | slimt::Response && | response | ) |
Definition at line 17 of file translation.cpp.
Member Function Documentation
◆ operator bool()
|
inline |
Bool operator to check whether this is an initialised translation or just an empty object.
Definition at line 36 of file translation.h.
◆ translation()
|
nodiscard |
Translation result.
Definition at line 22 of file translation.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.