mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
sync from RS
This commit is contained in:
parent
7d27b211a6
commit
be1fe6d476
@ -142,6 +142,22 @@
|
|||||||
<Name>Max</Name>
|
<Name>Max</Name>
|
||||||
<Return>System.Number</Return>
|
<Return>System.Number</Return>
|
||||||
</Method>
|
</Method>
|
||||||
|
<Method>
|
||||||
|
<Imports />
|
||||||
|
<Java>Math.pow(${a},${b})</Java>
|
||||||
|
<Params>
|
||||||
|
<Param>
|
||||||
|
<Type>System.Double</Type>
|
||||||
|
<Name>a</Name>
|
||||||
|
</Param>
|
||||||
|
<Param>
|
||||||
|
<Type>System.Double</Type>
|
||||||
|
<Name>b</Name>
|
||||||
|
</Param>
|
||||||
|
</Params>
|
||||||
|
<Name>Pow</Name>
|
||||||
|
<Return>System.Double</Return>
|
||||||
|
</Method>
|
||||||
<Method>
|
<Method>
|
||||||
<Imports />
|
<Imports />
|
||||||
<Java>Math.round(${d})</Java>
|
<Java>Math.round(${d})</Java>
|
||||||
|
@ -46,6 +46,18 @@
|
|||||||
<Name>GetString</Name>
|
<Name>GetString</Name>
|
||||||
<Return>System.String</Return>
|
<Return>System.String</Return>
|
||||||
</Method>
|
</Method>
|
||||||
|
<Method>
|
||||||
|
<Imports />
|
||||||
|
<Java>new String(${buf}, ${this:16}.getString())</Java>
|
||||||
|
<Params>
|
||||||
|
<Param>
|
||||||
|
<Type>System.Byte[]</Type>
|
||||||
|
<Name>buf</Name>
|
||||||
|
</Param>
|
||||||
|
</Params>
|
||||||
|
<Name>GetString</Name>
|
||||||
|
<Return>System.String</Return>
|
||||||
|
</Method>
|
||||||
</Methods>
|
</Methods>
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property>
|
<Property>
|
||||||
|
@ -61,6 +61,10 @@ public class CSList<T> implements ICollection<T>, IEnumerable<T>, Collection<T>,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CSList(Collection<T> c){
|
||||||
|
myList = new ArrayList<T>(c);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public Iterator<T> iterator() {
|
public Iterator<T> iterator() {
|
||||||
return myList.iterator();
|
return myList.iterator();
|
||||||
|
@ -56,7 +56,7 @@ public class MailAddress {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public InternetAddress toInternetAddress() throws UnsupportedEncodingException {
|
public InternetAddress toInternetAddress() throws UnsupportedEncodingException {
|
||||||
return new InternetAddress(address, displayName);
|
return new InternetAddress(address, displayName, "utf-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -128,7 +128,10 @@ public class StringSupport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String Trim(String in, char[] filters, boolean trimStart, boolean trimEnd)
|
public static String Trim(String in, char[] filters, boolean trimStart, boolean trimEnd)
|
||||||
{
|
{
|
||||||
|
if(in == null){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
// Locate first non-trimmable index
|
// Locate first non-trimmable index
|
||||||
int firstIdx = 0;
|
int firstIdx = 0;
|
||||||
if (trimStart) {
|
if (trimStart) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user