NEURON
strfun.cpp File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include <stdlib.h>
#include "classreg.h"
#include "code.h"
#include "oc2iv.h"
#include <string.h>
#include <regex>
#include <symdir.h>
#include <oclist.h>
#include <parse.hpp>
#include <hoclist.h>
#include "utils/logger.hpp"

Go to the source code of this file.

Functions

int nrn_is_artificial (int)
 
static double l_substr (void *)
 
static double l_len (void *)
 
static double l_head (void *)
 
static double l_tail (void *)
 
static double l_ltrim (void *)
 
static double l_rtrim (void *)
 
static double l_left (void *)
 
static double l_right (void *)
 
static double l_is_name (void *)
 
void hoc_free_symspace (Symbol *)
 
Objecthoc_newobj1 (Symbol *, int)
 
Symbolivoc_alias_lookup (const char *name, Object *ob)
 
void ivoc_free_alias (Object *ob)
 
static double l_alias (void *)
 
static Object ** l_alias_list (void *)
 
static int l_ref2 (Object *o, Object *ob, int nr)
 
static int l_ref1 (Symlist *sl, Objectdata *data, Object *ob, int nr)
 
static int l_ref0 (Symlist *sl, Object *ob, int nr)
 
static int l_ref3 (Symbol *s, Object *ob, int nr)
 
static int l_ref4 (Symbol *s, Object *ob, int nr)
 
static double l_ref (void *)
 
static double l_is_point (void *)
 
static double l_is_artificial (void *)
 
static void * l_cons (Object *)
 
void StringFunctions_reg ()
 

Variables

Objectdatahoc_top_level_data
 
Symlisthoc_built_in_symlist
 
Symlisthoc_top_level_symlist
 
static Member_func l_members []
 
static Member_ret_obj_func l_obj_members [] = {{"alias_list", l_alias_list}, {nullptr, nullptr}}
 

Function Documentation

◆ hoc_free_symspace()

void hoc_free_symspace ( Symbol s1)

Definition at line 166 of file symbol.cpp.

◆ hoc_newobj1()

Object* hoc_newobj1 ( Symbol sym,
int  narg 
)

Definition at line 497 of file hoc_oop.cpp.

◆ l_alias()

static double l_alias ( void *  )
static

Definition at line 160 of file strfun.cpp.

◆ l_alias_list()

static Object** l_alias_list ( void *  )
static

Definition at line 194 of file strfun.cpp.

◆ l_cons()

static void* l_cons ( Object )
static

Definition at line 376 of file strfun.cpp.

◆ l_head()

static double l_head ( void *  )
static

Definition at line 42 of file strfun.cpp.

◆ l_is_artificial()

static double l_is_artificial ( void *  )
static

Definition at line 349 of file strfun.cpp.

◆ l_is_name()

static double l_is_name ( void *  )
static

Definition at line 134 of file strfun.cpp.

◆ l_is_point()

static double l_is_point ( void *  )
static

Definition at line 343 of file strfun.cpp.

◆ l_left()

static double l_left ( void *  )
static

Definition at line 120 of file strfun.cpp.

◆ l_len()

static double l_len ( void *  )
static

Definition at line 37 of file strfun.cpp.

◆ l_ltrim()

static double l_ltrim ( void *  )
static

Definition at line 94 of file strfun.cpp.

◆ l_ref()

static double l_ref ( void *  )
static

Definition at line 323 of file strfun.cpp.

◆ l_ref0()

static int l_ref0 ( Symlist sl,
Object ob,
int  nr 
)
static

Definition at line 275 of file strfun.cpp.

◆ l_ref1()

static int l_ref1 ( Symlist sl,
Objectdata data,
Object ob,
int  nr 
)
static

Definition at line 253 of file strfun.cpp.

◆ l_ref2()

static int l_ref2 ( Object o,
Object ob,
int  nr 
)
static

Definition at line 222 of file strfun.cpp.

◆ l_ref3()

static int l_ref3 ( Symbol s,
Object ob,
int  nr 
)
static

Definition at line 291 of file strfun.cpp.

◆ l_ref4()

static int l_ref4 ( Symbol s,
Object ob,
int  nr 
)
static

Definition at line 307 of file strfun.cpp.

◆ l_right()

static double l_right ( void *  )
static

Definition at line 127 of file strfun.cpp.

◆ l_rtrim()

static double l_rtrim ( void *  )
static

Definition at line 107 of file strfun.cpp.

◆ l_substr()

static double l_substr ( void *  )
static

Definition at line 25 of file strfun.cpp.

◆ l_tail()

static double l_tail ( void *  )
static

Definition at line 68 of file strfun.cpp.

◆ nrn_is_artificial()

int nrn_is_artificial ( int  pnttype)

Definition at line 222 of file init.cpp.

◆ StringFunctions_reg()

void StringFunctions_reg ( )

Definition at line 380 of file strfun.cpp.

Variable Documentation

◆ hoc_built_in_symlist

Symlist* hoc_built_in_symlist
extern

Definition at line 28 of file symbol.cpp.

◆ hoc_top_level_data

Objectdata* hoc_top_level_data
extern

Definition at line 123 of file hoc_oop.cpp.

◆ hoc_top_level_symlist

Symlist* hoc_top_level_symlist
extern

Definition at line 16 of file symdir.cpp.

◆ l_members

Member_func l_members[]
static
Initial value:
= {{"substr", l_substr},
{"len", l_len},
{"head", l_head},
{"tail", l_tail},
{"ltrim", l_ltrim},
{"rtrim", l_rtrim},
{"right", l_right},
{"left", l_left},
{"is_name", l_is_name},
{"alias", l_alias},
{"references", l_ref},
{"is_point_process", l_is_point},
{"is_artificial", l_is_artificial},
{nullptr, nullptr}}
static double l_is_artificial(void *)
Definition: strfun.cpp:349
static double l_tail(void *)
Definition: strfun.cpp:68
static double l_left(void *)
Definition: strfun.cpp:120
static double l_len(void *)
Definition: strfun.cpp:37
static double l_rtrim(void *)
Definition: strfun.cpp:107
static double l_substr(void *)
Definition: strfun.cpp:25
static double l_ref(void *)
Definition: strfun.cpp:323
static double l_head(void *)
Definition: strfun.cpp:42
static double l_right(void *)
Definition: strfun.cpp:127
static double l_is_name(void *)
Definition: strfun.cpp:134
static double l_ltrim(void *)
Definition: strfun.cpp:94
static double l_is_point(void *)
Definition: strfun.cpp:343
static double l_alias(void *)
Definition: strfun.cpp:160

Definition at line 359 of file strfun.cpp.

◆ l_obj_members

Member_ret_obj_func l_obj_members[] = {{"alias_list", l_alias_list}, {nullptr, nullptr}}
static

Definition at line 374 of file strfun.cpp.