mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-24 11:55:28 -04:00
30 lines
556 B
C++
30 lines
556 B
C++
/**
|
|
|
|
GDevelop - Function Extension
|
|
Copyright (c) 2008-2015 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/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, unsigned int index );
|
|
|
|
}
|
|
}
|
|
|
|
|
|
#endif // FUNCTIONTOOLS_H
|