OpenLexocad  27.0
StringConverter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Base/String.h>
4 #include <Core/core_defines2.h>
5 
6 #include <QString>
7 
8 /*
9 namespace Core {
10 
11  class StringConverter
12  {
13  public:
14  static QString toQString(const Base::String& str)
15  {
16  return QString::fromStdWString(str._utf16string);
17  }
18 
19  static Base::String toString(const QString& str)
20  {
21  Base::String bs(str.size());
22  bs._utf16string = str.toStdWString();
23  return bs;
24  }
25  };
26 
27 }
28 
29 */