mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 04:33:45 +03:00
a76a1322eb
Written by Volkmar Frinken (@vfrinken). This is intended as a lightweight (i.e. minimal dependencies) code generator that can be ported to multiple platforms, especially those with memory constraints. It shouldn't be expected to be anywhere near as fast as the Scheme back end, for lots of reasons. The main goal is portability.
16 lines
359 B
C
16 lines
359 B
C
#ifndef __STRING_OPS_H__
|
|
#define __STRING_OPS_H__
|
|
|
|
#include "cBackend.h"
|
|
|
|
Value *stringLength(Value *);
|
|
Value *head(Value *str);
|
|
Value *tail(Value *str);
|
|
Value *reverse(Value *str);
|
|
Value *strIndex(Value *str, Value *i);
|
|
Value *strCons(Value *c, Value *str);
|
|
Value *strAppend(Value *a, Value *b);
|
|
Value *strSubstr(Value *s, Value *start, Value *len);
|
|
|
|
#endif
|