1 #!/usr/bin/env python 2 3 """ 4 Native library functions. 5 6 Copyright (C) 2011, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk> 7 8 This program is free software; you can redistribute it and/or modify it under 9 the terms of the GNU General Public License as published by the Free Software 10 Foundation; either version 3 of the License, or (at your option) any later 11 version. 12 13 This program is distributed in the hope that it will be useful, but WITHOUT 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 16 details. 17 18 You should have received a copy of the GNU General Public License along with 19 this program. If not, see <http://www.gnu.org/licenses/>. 20 """ 21 22 from native.buffer import buffer_str 23 24 from native.identity import is_, is_not 25 26 from native.int import int_add, int_div, int_mod, int_mul, int_neg, int_pow, \ 27 int_sub, int_and, int_not, int_or, int_xor, int_lt, \ 28 int_gt, int_eq, int_ne, int_str 29 30 from native.introspection import object_getattr, isinstance, issubclass 31 32 from native.iconv import iconv, iconv_close, iconv_open, iconv_reset 33 34 from native.io import fclose, fflush, fopen, fdopen, close, read, write, fread, fwrite 35 36 from native.limits import get_maxint, get_minint 37 38 from native.list import list_init, list_setsize, list_append, list_concat, \ 39 list_len, list_nonempty, list_element, list_setelement 40 41 from native.locale import getlocale, setlocale 42 43 from native.program import get_using 44 45 from native.str import str_add, str_chr, str_eq, str_gt, str_lt, str_len, \ 46 str_nonempty, str_ord, str_substr 47 48 from native.system import exit, get_argv, get_path 49 50 from native.unicode import unicode_len, unicode_ord, unicode_substr 51 52 # vim: tabstop=4 expandtab shiftwidth=4