You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to split IP address 178.158.104.3 from this block by automatically generating code:
StringextractAddress(target) {
if (!target.contains('inet addr:')) {
return'';
}
String hitLine ='';
var lines = target.split(PlatformAdaptUtils.getLineBreak());
for (String curLine in lines) {
if (curLine.contains('inet addr:')) {
hitLine = curLine;
break;
}
}
var splitArray = hitLine.split(' ');
String ipValue ='';
for (String value in splitArray) {
if (value.contains('addr:')) {
ipValue = value.replaceFirst('addr:', '');
}
}
return ipValue;
}
This is only a simple example of it in dart code. By this automated tool, It may only save me for a few minutes, but it also means that it has a meaning to exist and come out.
operation way: Just find out and select target value in block.
The text was updated successfully, but these errors were encountered:
The char block may look like this:
We want to split IP address
178.158.104.3
from this block by automatically generating code:This is only a simple example of it in
dart
code. By this automated tool, It may only save me for a few minutes, but it also means that it has a meaning to exist and come out.The text was updated successfully, but these errors were encountered: