Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:documentation:devguide:core:char_encoding [2016/10/04 09:23] carolina.santos [C++] |
wiki:documentation:devguide:core:char_encoding [2016/10/04 14:00] (current) carolina.santos [References] |
||
---|---|---|---|
Line 5: | Line 5: | ||
As support was created the class **te::core::Char Encoding** that allows the conversion of characters using the [[http://www.boost.org/doc/libs/1_62_0/libs/locale/doc/html/index.html | Boost.Locale]]. | As support was created the class **te::core::Char Encoding** that allows the conversion of characters using the [[http://www.boost.org/doc/libs/1_62_0/libs/locale/doc/html/index.html | Boost.Locale]]. | ||
- | This class is used only through static member functions, it is not possible to create instances or copies of the class. | + | This class is used only through static member functions and it is not possible to create instances or copies of the class. |
===== API ===== | ===== API ===== | ||
Line 39: | Line 39: | ||
\brief A class for handling character enconding/decoding. | \brief A class for handling character enconding/decoding. | ||
*/ | */ | ||
- | class TECOREEXPORT CharEncoding | + | class CharEncoding |
{ | { | ||
public: | public: | ||
Line 136: | Line 136: | ||
</code> | </code> | ||
- | ===== Exemplo ===== | + | ===== Example ===== |
- | A seguir um exemplo de uso simples das funções fornecidas pela classe ''CharEncoding'': | + | Here is a simple example using the functions provided by **CharEncoding** class: |
<code cpp> | <code cpp> | ||
Line 169: | Line 169: | ||
==== Interfaces Qt ==== | ==== Interfaces Qt ==== | ||
- | A seguir um exemplo de utilização de uma QString nos componentes Qt: | + | Here is an example of using a QString in Qt components: |
<code cpp> | <code cpp> | ||
Line 176: | Line 176: | ||
</code> | </code> | ||
- | **Nota:** caso não seja possível converter um caracter o mesmo será ignorado. | + | **Note:** in case it is not possible to convert a character it will be ignored. |
- | ===== Referências ===== | + | ===== Additional References ===== |
- | * [[http://www.boost.org/doc/libs/1_62_0/libs/locale/doc/html/index.html | Boost.Locale]] | ||
* [[http://stackoverflow.com/questions/1259084/what-encoding-code-page-is-cmd-exe-using | What encoding/code page is cmd.exe using]] | * [[http://stackoverflow.com/questions/1259084/what-encoding-code-page-is-cmd-exe-using | What encoding/code page is cmd.exe using]] | ||