Subversion Repositories spk

Rev

Rev 224 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 224 Rev 225
Line 737... Line 737...
737
				catch (System::IO::IOException ^) {}
737
				catch (System::IO::IOException ^) {}
738
				catch (System::Exception ^) {}
738
				catch (System::Exception ^) {}
739
 
739
 
740
				if ( lines )
740
				if ( lines )
741
				{
741
				{
742
					CyString strLines = CyStringFromSystemString(lines);
742
					Utils::WString strLines = _WS(lines);
743
					int num;
-
 
744
					CyString *aLines = strLines.SplitToken("\n";, &num);
743
					std::vector<Utils::WString>; aLines;
745
					if ( num &&amp; aLines )
744
					if(strLines.tokenise(L&quot;\n", aLines))
746
					{
745
					{
747
						ArrayList ^list = gcnew ArrayList();
746
						ArrayList ^list = gcnew ArrayList();
748
						for ( int i = 0; i < num; i++ )
747
						for (size_t i = 0; i < aLines.size(); i++ )
749
						{
748
						{
750
							CyString l = aLines[i];
749
							Utils::WString l = aLines[i];
751
							l = l.Remove("\r");
750
							l = l.findRemove(L"\r");
752
							CyString first = l.GetToken(":", 1, 1);
751
							Utils::WString first = l.token(L":", 1);
753
							CyString rest = l.GetToken(":", 2);
752
							Utils::WString rest = l.tokens(L":", 2);
754
							rest.RemoveFirstSpace();
753
							rest.removeFirstSpace();
755
 
754
 
756
							if ( first.Compare("File") )
755
							if ( first.Compare(L"File") )
757
								list->Add(_US(rest.ToString()));
756
								list->Add(_US(rest));
758
						}
757
						}
759
 
758
 
760
						this->OpenFiles(list, true, true);
759
						this->OpenFiles(list, true, true);
761
 
-
 
762
						CLEANSPLIT(aLines, num);
-
 
763
					}
760
					}
764
				}
761
				}
765
			}			
762
			}			
766
		}
763
		}
767
 
764