YAP 7.1.0
chartypes.c File Reference

Character Properties. More...

#include "Yap.h"
#include "YapHeap.h"
#include "YapText.h"
#include "Yatom.h"
#include "yapio.h"
#include <stdlib.h>
#include "YapEval.h"
#include "iopreds.h"

Go to the source code of this file.

Typedefs

typedef struct enc_map enc_map_t
 

Functions

int Yap_encoding_error (YAP_Int ch, int code, struct stream_desc *st)
 
int Yap_bad_nl_error (Term string, struct stream_desc *st)
 
int Yap_symbol_encoding_error (YAP_Int ch, int code, struct stream_desc *st, const char *s)
 This is a bug while encoding a symbol, and should always result in a syntax error. More...
 
Term Yap_StringToNumberTerm (const char *s, encoding_t *encp, bool error_on)
 
encoding_t Yap_SystemEncoding (void)
 
encoding_t Yap_DefaultEncoding (void)
 
void Yap_SetDefaultEncoding (encoding_t new_encoding)
 
int ISOWGetc (int sno)
 
void Yap_InitChtypes (void)
 

Variables

const char * encvs [] = {"LANG", "LC_ALL", "LC_CTYPE", NULL}
 

Detailed Description

Character Properties.

Author
VITOR SANTOS COSTA vsc@V.nosp@m.ITOR.nosp@m.s-MBP.nosp@m..lan
Date
Thu Nov 19 12:05:14 2015

Definition in file chartypes.c.

Function Documentation

◆ ISOWGetc()

int ISOWGetc ( int  sno)

Definition at line 732 of file chartypes.c.

◆ Yap_bad_nl_error()

int Yap_bad_nl_error ( Term  string,
struct stream_desc st 
)

Definition at line 97 of file chartypes.c.

◆ Yap_DefaultEncoding()

encoding_t Yap_DefaultEncoding ( void  )

Definition at line 233 of file chartypes.c.

◆ Yap_encoding_error()

int Yap_encoding_error ( YAP_Int  ch,
int  code,
struct stream_desc st 
)

Definition at line 81 of file chartypes.c.

◆ Yap_InitChtypes()

void Yap_InitChtypes ( void  )

Definition at line 896 of file chartypes.c.

◆ Yap_SetDefaultEncoding()

void Yap_SetDefaultEncoding ( encoding_t  new_encoding)

Definition at line 238 of file chartypes.c.

◆ Yap_StringToNumberTerm()

Term Yap_StringToNumberTerm ( const char *  s,
encoding_t *  encp,
bool  error_on 
)

Definition at line 134 of file chartypes.c.

◆ Yap_symbol_encoding_error()

int Yap_symbol_encoding_error ( YAP_Int  ch,
int  code,
struct stream_desc st,
const char *  s 
)

This is a bug while encoding a symbol, and should always result in a syntax error.

Parameters
ch
code
st
s
Returns

Definition at line 127 of file chartypes.c.

◆ Yap_SystemEncoding()

encoding_t Yap_SystemEncoding ( void  )

Definition at line 199 of file chartypes.c.

Variable Documentation

◆ encvs

const char* encvs[] = {"LANG", "LC_ALL", "LC_CTYPE", NULL}

Definition at line 162 of file chartypes.c.