Lines Matching defs:border
47 static std::string toSvgString(const QrCode &qr, int border);
193 // of border modules. The string always uses Unix newlines (\n), regardless of the platform.
194 static std::string toSvgString(const QrCode &qr, int border) {
195 if (border < 0)
197 if (border > INT_MAX / 2 || border * 2 > INT_MAX - qr.getSize())
204 sb << (qr.getSize() + border * 2) << " " << (qr.getSize() + border * 2) << "\" stroke=\"none\">\n";
212 sb << "M" << (x + border) << "," << (y + border) << "h1v1h-1z";
224 int border = 4;
225 for (int y = -border; y < qr.getSize() + border; y++) {
226 for (int x = -border; x < qr.getSize() + border; x++) {