@ -606,7 +606,7 @@ public class Bry_ {
else return new byte [ ] { b3 } ;
}
public static boolean To_bool_by_int ( byte [ ] ary ) {
int rv = To_int_or ( ary , null , 0 , ary . length , Int_ . Min V alue) ;
int rv = To_int_or ( ary , null , 0 , ary . length , Int_ . Min _v alue) ;
switch ( rv ) {
case 0 : return false ;
case 1 : return true ;
@ -615,8 +615,8 @@ public class Bry_ {
}
public static byte To_int_as_byte ( byte [ ] ary , int bgn , int end , byte or ) { return ( byte ) To_int_or ( ary , bgn , end , or ) ; }
public static int To_int ( byte [ ] ary ) {
int rv = To_int_or ( ary , null , 0 , ary . length , Int_ . Min V alue) ;
if ( rv = = Int_ . Min V alue) throw Err_ . new_wo_type ( "could not parse to int" , "val" , String_ . new_u8 ( ary ) ) ;
int rv = To_int_or ( ary , null , 0 , ary . length , Int_ . Min _v alue) ;
if ( rv = = Int_ . Min _v alue) throw Err_ . new_wo_type ( "could not parse to int" , "val" , String_ . new_u8 ( ary ) ) ;
return rv ;
}
public static int To_int_or_neg1 ( byte [ ] ary ) { return To_int_or ( ary , null , 0 , ary . length , - 1 ) ; }
@ -741,10 +741,10 @@ public class Bry_ {
}
return To_int_or ( ary , bgn , end_num , or ) ;
}
public static double To_double ( byte [ ] ary , int bgn , int end ) { return Double_ . parse _ ( String_ . new_u8 ( ary , bgn , end ) ) ; }
public static double To_double ( byte [ ] ary , int bgn , int end ) { return Double_ . parse ( String_ . new_u8 ( ary , bgn , end ) ) ; }
public static double To_double_or ( byte [ ] bry , double or ) { return Double_ . parse_or ( String_ . new_u8 ( bry , 0 , bry . length ) , or ) ; }
public static double To_double_or ( byte [ ] ary , int bgn , int end , double or ) { return Double_ . parse_or ( String_ . new_u8 ( ary , bgn , end ) , or ) ; }
public static Decimal_adp To_decimal ( byte [ ] ary , int bgn , int end ) { return Decimal_adp_ . parse _ ( String_ . new_u8 ( ary , bgn , end ) ) ; }
public static Decimal_adp To_decimal ( byte [ ] ary , int bgn , int end ) { return Decimal_adp_ . parse ( String_ . new_u8 ( ary , bgn , end ) ) ; }
public static final byte Dlm_fld = ( byte ) '|' , Dlm_row = ( byte ) '\n' , Dlm_quote = ( byte ) '"' , Dlm_null = 0 , Ascii_zero = 48 ;
public static final String Fmt_csvDte = "yyyyMMdd HHmmss.fff" ;
public static DateAdp ReadCsvDte ( byte [ ] ary , Int_obj_ref posRef , byte lkp ) { // ASSUME: fmt = yyyyMMdd HHmmss.fff
@ -880,7 +880,7 @@ public class Bry_ {
return Replace ( bfr , src , find , repl , 0 , src . length ) ;
}
public static byte [ ] Replace ( Bry_bfr bfr , byte [ ] src , byte [ ] find , byte [ ] repl ) { return Replace ( bfr , src , find , repl , 0 , src . length ) ; }
public static byte [ ] Replace ( Bry_bfr bfr , byte [ ] src , byte [ ] find , byte [ ] repl , int src_bgn , int src_end ) { return Replace ( bfr , src , find , repl , src_bgn , src_end , Int_ . Max V alue) ; }
public static byte [ ] Replace ( Bry_bfr bfr , byte [ ] src , byte [ ] find , byte [ ] repl , int src_bgn , int src_end ) { return Replace ( bfr , src , find , repl , src_bgn , src_end , Int_ . Max _v alue) ; }
public static byte [ ] Replace ( Bry_bfr bfr , byte [ ] src , byte [ ] find , byte [ ] repl , int src_bgn , int src_end , int limit ) {
int pos = src_bgn ;
boolean dirty = false ;