Wrote a new ByteArray class to replace StringPiece and fixed all uses of it. Also...
authordswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Fri, 14 Nov 2008 21:51:26 +0000 (21:51 +0000)
committerdswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Fri, 14 Nov 2008 21:51:26 +0000 (21:51 +0000)
commite510ab0042b9ae2ddcfc250aceff322f5eaede14
tree410a7a6b8308af996db543f32639de26bf62000c
parentae3d38434ba5a73600d7902fe8a98d3fbf5879ed
Wrote a new ByteArray class to replace StringPiece and fixed all uses of it. Also converted all uses of stl::string (which was being used as vector<unsigned char>) to ByteArray. Everything in the Encoder but the Reed Solomon related code compiles now.

ByteArray could certainly move up to the common package, although it currently has a dependency on BitVector. We'll have to figure out what to do with the latter first.

This is the first set of changes I've made which are error prone. They involved a lot of pointer conversion, signed/unsigned semantics, etc. These diffs may have clues for later bugs.

git-svn-id: http://zxing.googlecode.com/svn/trunk@705 59b500cc-1b3d-0410-9834-0bbf25fbcc57
core/src/com/google/zxing/qrcode/encoder/BitVector.java
core/src/com/google/zxing/qrcode/encoder/ByteArray.java [new file with mode: 0644]
core/src/com/google/zxing/qrcode/encoder/Encoder.java
core/src/com/google/zxing/qrcode/encoder/QRCode.java
core/src/com/google/zxing/qrcode/encoder/Renderer.java