Files
GDevelop/Extensions/Function/FunctionTools.h
T
Florian Rival a8559bfbbc Add clang-format to format (C++) source files automatically (#491)
* Update all CMakeLists of extensions to use clang-format
* Run clang-format on all Extensions
* Update GDCore CMakeLists.txt to add clang-format
* Run clang-format on GDCore files
* Update GDJS and GDCpp CMakeLists.txt to add clang-format
* Run clang-format on GDCpp and GDJS files
2018-05-09 15:57:38 -07:00

28 lines
610 B
C++

/**
GDevelop - Function Extension
Copyright (c) 2008-2016 Florian Rival (Florian.Rival@gmail.com)
This project is released under the MIT License.
*/
#ifndef FUNCTIONTOOLS_H
#define FUNCTIONTOOLS_H
#include <string>
#include <vector>
#include "GDCpp/Runtime/String.h"
namespace GDpriv {
namespace FunctionTools {
/**
* \brief Return list[index] unless index is out of range.
* \return list[index] or empty string.
*/
gd::String GD_EXTENSION_API
GetSafelyStringFromVector(std::vector<gd::String>& list, std::size_t index);
} // namespace FunctionTools
} // namespace GDpriv
#endif // FUNCTIONTOOLS_H