()
| 1640 | } |
| 1641 | |
| 1642 | Variable[] split() { |
| 1643 | String s1 = getFirstString(); |
| 1644 | String s2 = null; |
| 1645 | if (interp.nextToken()==')') |
| 1646 | interp.getRightParen(); |
| 1647 | else |
| 1648 | s2 = getLastString(); |
| 1649 | if (s1==null) |
| 1650 | return null; |
| 1651 | String[] strings = null; |
| 1652 | if (s1.length()>0 && s2!=null && (s2.equals(",")||s2.equals(";"))) |
| 1653 | strings = s1.split(s2,-1); |
| 1654 | else if (s1.length()>0 && s2!=null && s2.length()>=3 && s2.startsWith("(")&&s2.endsWith(")")) { |
| 1655 | s2 = s2.substring(1,s2.length()-1); |
| 1656 | strings = s1.split(s2,-1); |
| 1657 | } else |
| 1658 | strings = (s2==null||s2.equals(""))?Tools.split(s1):Tools.split(s1, s2); |
| 1659 | Variable[] array = new Variable[strings.length]; |
| 1660 | for (int i=0; i<strings.length; i++) |
| 1661 | array[i] = new Variable(0, 0.0, strings[i]); |
| 1662 | return array; |
| 1663 | } |
| 1664 | |
| 1665 | Variable[] getFileList() { |
| 1666 | String dir = getStringArg(); |
no test coverage detected