comparison Resources/EncodingTests.py @ 2326:423d3b692bb9

Upgrade to Boost 1.64.0, and Toolbox::ToUpperCaseWithAccents
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 14 Jul 2017 15:53:04 +0200
parents 60cc0ee61edb
children 0441508735f4
comparison
equal deleted inserted replaced
2325:8198a9fa2553 2326:423d3b692bb9
70 print 'static const char *testEncodingsExpected[%d] = {\n %s\n};' % (len(l), ',\n '.join(expected)) 70 print 'static const char *testEncodingsExpected[%d] = {\n %s\n};' % (len(l), ',\n '.join(expected))
71 else: 71 else:
72 for i in range(len(expected)): 72 for i in range(len(expected)):
73 print expected[i] 73 print expected[i]
74 #print '%s: %s' % (expected[i], l[i]) 74 #print '%s: %s' % (expected[i], l[i])
75
76
77
78 u = (u'grüßEN SébasTIen %s' % source)
79 print 'static const char *toUpperSource = %s;' % ToArray(u.encode('utf-8'))
80 print 'static const char *toUpperResult = %s;' % ToArray(u.upper().encode('utf-8'))