equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
27 |
27 |
28 #include "sisstring.h" |
28 #include "sisstring.h" |
29 #include "utility.h" |
29 #include "utility.h" |
30 #include "exception.h" |
30 #include "exception.h" |
31 #include "utils.h" |
31 #include "utils.h" |
32 #include "utf8.h" |
32 #include "utf8_wrapper.h" |
33 |
33 |
34 // we cannot write or read a string directly from a file, because we don't know what format the |
34 // we cannot write or read a string directly from a file, because we don't know what format the |
35 // MS implementation of STL will use for the std::string. So we need to go via an intemediate buffer. |
35 // MS implementation of STL will use for the std::string. So we need to go via an intemediate buffer. |
36 // But strings can be variable size, including very big indeed, so that buffer will have to be |
36 // But strings can be variable size, including very big indeed, so that buffer will have to be |
37 // allocated as need be. Buffer allocation and deletion is expensive. It is sensible to allocate |
37 // allocated as need be. Buffer allocation and deletion is expensive. It is sensible to allocate |