#xnjava
از اونجایی که این اسکریپت تازه ساخت هست متد های کمی دارد😁
فراخوانی مانند دیگر اسکریپت های xn فقط
import xn;
البته پس از قرار دادن xn.java در ادرس اصلی پروژه
تابع پرینت برای نوشتن در خروجی
xn.print( mixed data );
گرفتن نوع داده
xn.typeof( mixed data );
یکی از مزایای typeof در xn قابلیت دریافت کامل نوع هست برای مثال
String[][][] str = {{{"str"}}};
xn.print(xn.typeof(str));
خروجی String[][][] خواهد بود!
xn.exit( int state = 0 );
بستن برنامه
xn.toString( mixed data );
تبدیل به رشته
▪️ ابجکت xn.string
استفاده :
xn.string str = new xn.string("hello world");
متد ها :
xn.string( mixed string );
str.from( mixed string );
String str.toString();
xn.string str.clone();
xn.string str.append( mixed data );
xn.string str.substr( int from );
xn.string str.substr( int from , int length );
xn.string str.substring( int from );
xn.string str.substring( int from , int to );
int str.indexOf( mixed search );
int str.indexOf( mixed search , int offset );
int str.lastIndexOf( mixed search );
int str.lastIndexOf( mixed search , int offset );
int str.length();
boolean str.equal( String str );
boolean str.equals( Object object );
boolean str.empty();
char str.onChar();
char str.lastChar();
xn.string str.tolower();
xn.string str.toupper();
xn.string str.reverse();
byte[] str.getBytes();
xn.string str.regex_replaceChar( char from , char to );
xn.string str.regex_replaceChar( String from , String to );
xn.string str.replaceChar( char from , char to );
xn.string str.replaceChar( String from , String to );
xn.string str.regex_replaceAll( String from , String to );
xn.string str.replaceAll( String from , String to );
xn.string str.regex_replaceFirst( String from , String to );
xn.string str.replaceFirst( String from , String to );
xn.string str.regex_replace( String from , String to );
xn.string str.regex_replace( String[] from , String to );
xn.string str.regex_replace( String[] from , String[] to );
xn.string str.regex_replace( String from , String to , int limit );
xn.string str.regex_replace( String[] from , String to , int limit );
xn.string str.regex_replace( String[] from , String[] to , int limit );
xn.string str.replace( String from , String to );
xn.string str.replace( String[] from , String to );
xn.string str.replace( String[] from , String[] to );
xn.string str.replace( String from , String to , int limit );
xn.string str.replace( String[] from , String to , int limit );
xn.string str.replace( String[] from , String[] to , int limit );
str.nextLine();
xn.string[] str.split( String by );
xn.string[] str.split( String by , int limit );
xn.string str.repeat( int count );
int str.regex_findcount( String search );
int str.findcount( String search );
int str.words_count();
int str.lines_count();
xn.string str.rightTrim( String|char by = "\n\r\t " );
xn.string str.leftTrim( String|char by = "\n\r\t " );
xn.string str.trim( String|char by = "\n\r\t " );
boolean str.matches( String regex );
xn.string str.replaceBount( int from , int to , String replacement );
xn.string str.ucwords();
xn.string str.lcwords();
xn.string str.ucfirst();
xn.string str.lcfirst();
xn.string str.uclast();
xn.string str.lclast();
char str.charAt( int index );
xn.string str.deleteCharAt( int index );
xn.string str.delete( int from , int to );
میدونم تعداد متد ها و mixed ها اونم توی جاوا یخورده ترسناکه😁😐
از اونجایی که این اسکریپت تازه ساخت هست متد های کمی دارد😁
فراخوانی مانند دیگر اسکریپت های xn فقط
import xn;
البته پس از قرار دادن xn.java در ادرس اصلی پروژه
تابع پرینت برای نوشتن در خروجی
xn.print( mixed data );
گرفتن نوع داده
xn.typeof( mixed data );
یکی از مزایای typeof در xn قابلیت دریافت کامل نوع هست برای مثال
String[][][] str = {{{"str"}}};
xn.print(xn.typeof(str));
خروجی String[][][] خواهد بود!
xn.exit( int state = 0 );
بستن برنامه
xn.toString( mixed data );
تبدیل به رشته
▪️ ابجکت xn.string
استفاده :
xn.string str = new xn.string("hello world");
متد ها :
xn.string( mixed string );
str.from( mixed string );
String str.toString();
xn.string str.clone();
xn.string str.append( mixed data );
xn.string str.substr( int from );
xn.string str.substr( int from , int length );
xn.string str.substring( int from );
xn.string str.substring( int from , int to );
int str.indexOf( mixed search );
int str.indexOf( mixed search , int offset );
int str.lastIndexOf( mixed search );
int str.lastIndexOf( mixed search , int offset );
int str.length();
boolean str.equal( String str );
boolean str.equals( Object object );
boolean str.empty();
char str.onChar();
char str.lastChar();
xn.string str.tolower();
xn.string str.toupper();
xn.string str.reverse();
byte[] str.getBytes();
xn.string str.regex_replaceChar( char from , char to );
xn.string str.regex_replaceChar( String from , String to );
xn.string str.replaceChar( char from , char to );
xn.string str.replaceChar( String from , String to );
xn.string str.regex_replaceAll( String from , String to );
xn.string str.replaceAll( String from , String to );
xn.string str.regex_replaceFirst( String from , String to );
xn.string str.replaceFirst( String from , String to );
xn.string str.regex_replace( String from , String to );
xn.string str.regex_replace( String[] from , String to );
xn.string str.regex_replace( String[] from , String[] to );
xn.string str.regex_replace( String from , String to , int limit );
xn.string str.regex_replace( String[] from , String to , int limit );
xn.string str.regex_replace( String[] from , String[] to , int limit );
xn.string str.replace( String from , String to );
xn.string str.replace( String[] from , String to );
xn.string str.replace( String[] from , String[] to );
xn.string str.replace( String from , String to , int limit );
xn.string str.replace( String[] from , String to , int limit );
xn.string str.replace( String[] from , String[] to , int limit );
str.nextLine();
xn.string[] str.split( String by );
xn.string[] str.split( String by , int limit );
xn.string str.repeat( int count );
int str.regex_findcount( String search );
int str.findcount( String search );
int str.words_count();
int str.lines_count();
xn.string str.rightTrim( String|char by = "\n\r\t " );
xn.string str.leftTrim( String|char by = "\n\r\t " );
xn.string str.trim( String|char by = "\n\r\t " );
boolean str.matches( String regex );
xn.string str.replaceBount( int from , int to , String replacement );
xn.string str.ucwords();
xn.string str.lcwords();
xn.string str.ucfirst();
xn.string str.lcfirst();
xn.string str.uclast();
xn.string str.lclast();
char str.charAt( int index );
xn.string str.deleteCharAt( int index );
xn.string str.delete( int from , int to );
میدونم تعداد متد ها و mixed ها اونم توی جاوا یخورده ترسناکه😁😐