Guest User

Untitled

a guest
Jul 3rd, 2019
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. QStringList Lines = temp_string.split('\n');
  2.  
  3. QJsonArray row;
  4.  
  5. for ( int i=0 ; i<Lines.size() ; i++ )
  6. {
  7. QJsonValue Jval;
  8.  
  9. QString substr = Lines[i];
  10.  
  11.  
  12.  
  13. ui->textEdit->append("raw : "+substr);
  14.  
  15. if (substr.contains("\\[") )
  16. { // sold[digits] -> it must be price sold
  17. ui->textEdit->append("SSSS "+substr);
  18. }
  19. else if (substr.contains("(bought\[.*?\])"))
  20. { // bought[anything] -> it must be price bought
  21. substr.remove("(bought)\[.*?\]");
  22. ui->textEdit->append("BBBB "+substr);
  23. }
RAW Paste Data