git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3855 refactor the pAE retrieval code so it can be called via structureselectionma...
[jalview.git]
/
src
/
com
/
stevesoft
/
pat
/
RegRes.java
diff --git
a/src/com/stevesoft/pat/RegRes.java
b/src/com/stevesoft/pat/RegRes.java
index
a204c47
..
b081d1e
100755
(executable)
--- a/
src/com/stevesoft/pat/RegRes.java
+++ b/
src/com/stevesoft/pat/RegRes.java
@@
-47,9
+47,8
@@
public class RegRes implements Cloneable
for (int i = 0; i < numSubs(); i++)
{
int n = i + 1;
for (int i = 0; i < numSubs(); i++)
{
int n = i + 1;
- sb
- .append(" sub(" + n + ")=" + matchedFrom(n) + ":"
- + charsMatched(n));
+ sb.append(
+ " sub(" + n + ")=" + matchedFrom(n) + ":" + charsMatched(n));
}
return sb.toString();
}
}
return sb.toString();
}
@@
-130,8
+129,8
@@
public class RegRes implements Cloneable
public String stringMatched()
{
int mf = matchedFrom(), cm = charsMatched();
public String stringMatched()
{
int mf = matchedFrom(), cm = charsMatched();
- return !didMatch_ || mf < 0 || cm < 0 ? null : src.substring(mf, mf
- + cm);
+ return !didMatch_ || mf < 0 || cm < 0 ? null
+ : src.substring(mf, mf + cm);
}
/**
}
/**
@@
-185,8
+184,8
@@
public class RegRes implements Cloneable
public String stringMatched(int i)
{
int mf = matchedFrom(i), cm = charsMatched(i);
public String stringMatched(int i)
{
int mf = matchedFrom(i), cm = charsMatched(i);
- return !didMatch_ || mf < 0 || cm < 0 ? null : src.substring(mf, mf
- + cm);
+ return !didMatch_ || mf < 0 || cm < 0 ? null
+ : src.substring(mf, mf + cm);
}
/**
}
/**
@@
-216,8
+215,8
@@
public class RegRes implements Cloneable
public String right()
{
int mf = matchedFrom(), cm = charsMatched();
public String right()
{
int mf = matchedFrom(), cm = charsMatched();
- return !didMatch_ || mf < 0 || cm < 0 ? null : src.substring(mf + cm,
- src.length());
+ return !didMatch_ || mf < 0 || cm < 0 ? null
+ : src.substring(mf + cm, src.length());
}
/**
}
/**
@@
-227,8
+226,8
@@
public class RegRes implements Cloneable
public String right(int i)
{
int mf = matchedFrom(i), cm = charsMatched(i);
public String right(int i)
{
int mf = matchedFrom(i), cm = charsMatched(i);
- return !didMatch_ || mf < 0 || cm < 0 ? null : src.substring(mf + cm,
- src.length());
+ return !didMatch_ || mf < 0 || cm < 0 ? null
+ : src.substring(mf + cm, src.length());
}
/**
}
/**