sources/list.cpp

changeset 182
20ca0a6be175
parent 180
2e7225dbd9b2
child 190
90bf9049e5eb
equal deleted inserted replaced
181:e254398fcc7c 182:20ca0a6be175
27 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "list.h" 31 #include "list.h"
32 #include "mystring.h"
33 32
34 BEGIN_ZFC_NAMESPACE 33 BEGIN_ZFC_NAMESPACE
35 34
36 /*! 35 /*!
37 * \brief Finds a suitable string representation for the provided byte. 36 * \brief Finds a suitable string representation for the provided byte.
74 return buffer; 73 return buffer;
75 } 74 }
76 } 75 }
77 } 76 }
78 77
79 String quote(const ByteArray &bytes) 78 std::string quote(const ByteArray &bytes)
80 { 79 {
81 String result; 80 std::string result;
82 81
83 for (unsigned char byte : bytes) 82 for (unsigned char byte : bytes)
84 result += representByte(byte); 83 result += representByte(byte);
85 84
86 return "\"" + result + "\""; 85 return "\"" + result + "\"";

mercurial