Package smetana.core

Class JUtils


  • public class JUtils
    extends java.lang.Object
    • Field Detail

      • USHRT_MAX

        public static int USHRT_MAX
    • Constructor Detail

      • JUtils

        public JUtils()
    • Method Detail

      • sizeof

        public static size_t sizeof​(java.lang.Class cl)
      • sizeof

        public static size_t sizeof​(java.lang.String name,
                                    int sz)
      • size_t_array_of_integer

        public static size_t size_t_array_of_integer​(int nb)
      • strncmp

        public static int strncmp​(CString s1,
                                  CString s2,
                                  int n)
      • strncpy

        public static void strncpy​(CString destination,
                                   CString source,
                                   int nb)
      • strtol

        public static int strtol​(CString str,
                                 CString[] endptr,
                                 int base)
      • strtod

        public static double strtod​(CString str,
                                    CString[] endptr)
      • atof

        public static double atof​(CString str)
      • memcmp

        public static int memcmp​(__ptr__ s1,
                                 __ptr__ s2,
                                 int sz)
      • memset

        public static void memset​(__ptr__ obj,
                                  int value,
                                  size_t nbytes)
      • strlen

        public static int strlen​(CString s)
      • abs

        public static double abs​(double x)
      • cos

        public static double cos​(double x)
      • sin

        public static double sin​(double x)
      • sqrt

        public static double sqrt​(double x)
      • atan2

        public static double atan2​(double a,
                                   double b)
      • pow

        public static double pow​(double a,
                                 double b)
      • isdigit

        public static boolean isdigit​(char c)
      • atoi

        public static int atoi​(CString s)
      • tolower

        public static char tolower​(char c)
      • function

        public static CFunction function​(java.lang.Class codingClass,
                                         java.lang.String name)
      • enumAsInt

        public static int enumAsInt​(java.lang.Class enumClass,
                                    java.lang.String name)
      • LOG

        public static void LOG​(java.lang.String s)
      • LOG2

        public static void LOG2​(java.lang.String s)
      • EQ

        public static boolean EQ​(java.lang.Object o1,
                                 java.lang.Object o2)
      • NEQ

        public static boolean NEQ​(java.lang.Object o1,
                                  java.lang.Object o2)
      • qsort

        public static void qsort​(__ptr__ array,
                                 int nb,
                                 CFunction compare)
      • setjmp

        public static int setjmp​(jmp_buf jmp)
      • printDebugEdge

        public static void printDebugEdge​(ST_Agedge_s e)
      • from

        public static <C extends __ptr____struct__<C> from​(java.lang.Class<C> theClass)