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_new, \ 27 int_add, int_div, int_mod, int_mul, int_neg, int_pow, \ 28 int_sub, int_and, int_not, int_or, int_xor, int_lt, \ 29 int_gt, int_eq, int_ne, int_str 30 31 from native.introspection import object_getattr, isinstance, issubclass 32 33 from native.iconv import iconv, iconv_close, iconv_open, iconv_reset 34 35 from native.io import fclose, fflush, fopen, fdopen, close, read, write, fread, fwrite 36 37 from native.limits import get_maxint, get_minint 38 39 from native.list import list_init, list_setsize, list_append, list_concat, \ 40 list_len, list_nonempty, list_element, list_setelement 41 42 from native.locale import getlocale, setlocale 43 44 from native.program import get_using 45 46 from native.str import str_add, str_chr, str_eq, str_gt, str_lt, \ 47 str_ord, str_substr 48 49 from native.system import exit, get_argv, get_path 50 51 from native.unicode import unicode_len, unicode_ord, unicode_substr, unicode_unichr 52 53 # vim: tabstop=4 expandtab shiftwidth=4