FlightGear next
NasalString.cxx File Reference
#include "NasalString.hxx"
#include <simgear/nasal/cppbind/from_nasal.hxx>
#include <simgear/nasal/cppbind/Ghost.hxx>
#include <simgear/nasal/cppbind/NasalHash.hxx>
#include <simgear/nasal/cppbind/NasalString.hxx>

Go to the source code of this file.

Functions

static naRef f_compare (const nasal::CallContext &ctx)
 Compare (sub)string with other string.
 
static naRef f_starts_with (const nasal::CallContext &ctx)
 Check whether string starts with other string.
 
static naRef f_ends_with (const nasal::CallContext &ctx)
 Check whether string ends with other string.
 
naRef pos_to_nasal (size_t pos)
 Helper to convert size_t position/npos to Nasal conventions (-1 == npos)
 
static naRef f_find (const nasal::CallContext &ctx)
 Find first occurrence of single character.
 
static naRef f_find_first_of (const nasal::CallContext &ctx)
 Find first character of a string occurring in this string.
 
static naRef f_find_first_not_of (const nasal::CallContext &ctx)
 Find first character of this string not occurring in the other string.
 
naRef initNasalString (naRef globals, naRef string, naContext c)
 

Function Documentation

◆ f_compare()

static naRef f_compare ( const nasal::CallContext & ctx)
static

Compare (sub)string with other string.

compare(s) compare(pos, len, s)

Definition at line 36 of file NasalString.cxx.

◆ f_ends_with()

static naRef f_ends_with ( const nasal::CallContext & ctx)
static

Check whether string ends with other string.

Definition at line 63 of file NasalString.cxx.

◆ f_find()

static naRef f_find ( const nasal::CallContext & ctx)
static

Find first occurrence of single character.

find(c, pos = 0)

Definition at line 87 of file NasalString.cxx.

◆ f_find_first_not_of()

static naRef f_find_first_not_of ( const nasal::CallContext & ctx)
static

Find first character of this string not occurring in the other string.

find_first_not_of(search, pos = 0)

Definition at line 118 of file NasalString.cxx.

◆ f_find_first_of()

static naRef f_find_first_of ( const nasal::CallContext & ctx)
static

Find first character of a string occurring in this string.

find_first_of(search, pos = 0)

Definition at line 104 of file NasalString.cxx.

◆ f_starts_with()

static naRef f_starts_with ( const nasal::CallContext & ctx)
static

Check whether string starts with other string.

Definition at line 52 of file NasalString.cxx.

◆ initNasalString()

naRef initNasalString ( naRef globals,
naRef string,
naContext c )

Definition at line 128 of file NasalString.cxx.

◆ pos_to_nasal()

naRef pos_to_nasal ( size_t pos)

Helper to convert size_t position/npos to Nasal conventions (-1 == npos)

Definition at line 74 of file NasalString.cxx.