GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ChaiScript/ChaiScript_Extras: Repository for ChaiScript bindings sources.

BranchesTags
Open more actions menu

Latest commit

 

History

44 Commits
44 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cmake
cmake
 
 
include/chaiscript/extras
include/chaiscript/extras
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

ChaiScript Extras

User contributed wrappers and modules for ChaiScript.

Modules

  • Math: Adds common math methods to ChaiScript.
  • String ID: String hashing with string_id
  • String: Adds some extra string methods to ChaiScript strings

Math

The Math module adds some standard math functions to ChaiScript.

Install

#include "chaiscript/extras/math.hpp"
chaiscript::ChaiScript chai;
auto mathlib = chaiscript::extras::math::bootstrap();
chai.add(mathlib);

Usage

var result = cos(0.5f)

Options

Compile with one of the following flags to enable or disable features...

  • CHAISCRIPT_EXTRAS_MATH_SKIP_ADVANCED When enabled, will skip some of the advanced math functions.

String ID

Adds String ID support to ChaiScript.

Install

#include "chaiscript/extras/string_id.hpp"
auto string_idlib = chaiscript::extras::string_id::bootstrap();
chai.add(string_idlib);

String

Adds various string methods to extend how strings can be used in ChaiScript:

  • string::replace(string, string)
  • string::trim()
  • string::trimStart()
  • string::trimEnd()
  • string::split(string)
  • string::toLowerCase()
  • string::toUpperCase()
  • string::includes()

Install

#include "chaiscript/extras/string_methods.hpp"
auto stringmethods = chaiscript::extras::string_methods::bootstrap();
chai.add(stringmethods);

Usage

var input = "Hello, World!"
var output = input.replace("Hello", "Goodbye")
// => "Goodbye, World!"

About

Repository for ChaiScript bindings sources.

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

32 stars

Watchers

5 watching

Forks

10 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.