/*
 * GDevelop C++ Platform
 * Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
 * reserved. This project is released under the MIT License.
 */

#include "GDCpp/Extensions/Builtin/StringInstructionsExtension.h"
#include "GDCore/Extensions/Builtin/AllBuiltinExtensions.h"
#include "GDCpp/Extensions/ExtensionBase.h"
#if !defined(GD_IDE_ONLY)
#include "GDCore/Extensions/Builtin/StringInstructionsExtension.cpp"
#endif

StringInstructionsExtension::StringInstructionsExtension() {
  gd::BuiltinExtensionsImplementer::ImplementsStringInstructionsExtension(
      *this);

#if defined(GD_IDE_ONLY)
  GetAllStrExpressions()["NewLine"]
      .SetFunctionName("GDpriv::StringTools::NewLine")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllStrExpressions()["FromCodePoint"]
      .SetFunctionName("GDpriv::StringTools::FromCodePoint")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllStrExpressions()["ToUpperCase"]
      .SetFunctionName("GDpriv::StringTools::ToUpperCase")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllStrExpressions()["ToLowerCase"]
      .SetFunctionName("GDpriv::StringTools::ToLowerCase")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllStrExpressions()["SubStr"]
      .SetFunctionName("GDpriv::StringTools::SubStr")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllStrExpressions()["StrAt"]
      .SetFunctionName("GDpriv::StringTools::StrAt")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllStrExpressions()["StrRepeat"]
      .SetFunctionName("GDpriv::StringTools::StrRepeat")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllExpressions()["StrLength"]
      .SetFunctionName("GDpriv::StringTools::StrLen")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllExpressions()["StrFind"]
      .SetFunctionName("GDpriv::StringTools::StrFind")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllExpressions()["StrRFind"]
      .SetFunctionName("GDpriv::StringTools::StrFindLast")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllExpressions()["StrFindLast"]
      .SetFunctionName("GDpriv::StringTools::StrFindLast")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllExpressions()["StrFindFrom"]
      .SetFunctionName("GDpriv::StringTools::StrFindFrom")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllExpressions()["StrRFindFrom"]
      .SetFunctionName("GDpriv::StringTools::StrFindLastFrom")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
  GetAllExpressions()["StrFindLastFrom"]
      .SetFunctionName("GDpriv::StringTools::StrFindLastFrom")
      .SetIncludeFile("GDCpp/Extensions/Builtin/StringTools.h");
#endif
}
