]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/InitializationPlugin/InitializationPlugin_PyInterp.h
Salome HOME
Issue #3237: Allow usage of accented characters in ObjectBrowser
[modules/shaper.git] / src / InitializationPlugin / InitializationPlugin_PyInterp.h
index b34a8df82ba0b213c71c2b2f81f49722eb3579ee..163c265b22cf41fb649774061d928402b6f59bc0 100644 (file)
@@ -39,16 +39,16 @@ class INITIALIZATIONPLUGIN_EXPORT InitializationPlugin_PyInterp : public PyInter
   virtual ~InitializationPlugin_PyInterp();
 
   /// Returns a list of positions for theName in theExpression.
-  std::list<std::pair<int, int> > positions(const std::string& theExpression,
-                                            const std::string& theName);
+  std::list<std::pair<int, int> > positions(const std::wstring& theExpression,
+                                            const std::wstring& theName);
   /// Compiles theExpression and returns a list of parameters used in theExpression.
-  std::list<std::string> compile(const std::string& theExpression);
+  std::list<std::wstring> compile(const std::wstring& theExpression);
   /// Extends local context with the list of parameters.
-  void extendLocalContext(const std::list<std::string>& theParameters);
+  void extendLocalContext(const std::list<std::wstring>& theParameters);
   /// Clears local context.
   void clearLocalContext();
   /// Evaluates theExpression and returns its value.
-  double evaluate(const std::string& theExpression, std::string& theError);
+  double evaluate(const std::wstring& theExpression, std::string& theError);
 
   /// Runs the string command in the python interpreter. Returns true if no error is in result.
   bool runString(std::string theString);