ug4
completion.cpp File Reference
#include <iostream>
#include <sstream>
#include <dirent.h>
#include <string>
#include <sys/stat.h>
#include "ug.h"
#include "bindings/lua/lua_util.h"
#include "bridge/bridge.h"
#include "bindings/lua/info_commands.h"
#include "bindings/lua/lua_stack_check.h"
#include "common/log.h"
#include "registry/registry.h"
#include "registry/class_helper.h"
#include "bindings/lua/externals/lua/lstate.h"

Namespaces

 ug
 the ug namespace
 
 ug::bridge
 

Functions

int ug::bridge::CompletionFunction (char *buf, int len, int buflen, int iPrintCompletionList)
 A function to implement word completion of classes and functions of ugscript When entered Dom<tab>, it completes to Domain2d, for example. If Domain2d and Domain3d are registered, it completes to Domain and shows suggestions Domain2d and Domain3d. currently only works with Linenoise. todo: - not all completions must have same snipped length. change. More...
 
static size_t ug::bridge::GetClassesCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen, int iPrintCompletionList)
 
static bool ug::bridge::GetGlobalFunctionInfo (char *buf, int len)
 
static size_t ug::bridge::GetGlobalsCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen, int iPrintCompletionList)
 
static size_t ug::bridge::GetMemberFunctionCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen)
 
static bool ug::bridge::GetMemberFunctionInfo (char *buf, int len)
 
static size_t ug::bridge::GetNamespaceCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen, int iPrintCompletionList)
 
static size_t ug::bridge::GetOtherCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen)
 
size_t ug::bridge::GetPathCompletitions (char *buf, int len, std::vector< string > &matches, size_t &sniplen)
 
void ug::bridge::print (const std::string &s)
 
void ug::bridge::SetOtherCompletions (const char **otherCompletions, int nr)
 

Variables

int ug::bridge::iOtherCompletitionsLength
 
const char ** ug::bridge::pOtherCompletitions =NULL