/inkscape/src/xml/ |
H A D | quote.cpp | 18 size_t len = 0; 23 len += 6; // " 26 len += 5; // & 30 len += 4; // < or > 33 ++len; 37 return len; 42 size_t len = xml_quoted_strlen(src); local 43 char *result = static_cast<char*>(g_malloc(len + 1));
|
H A D | quote-test.h | 30 size_t len; member in struct:XmlQuoteTest::__anon560 43 TS_ASSERT_EQUALS( xml_quoted_strlen(cases[i].s) , cases[i].len );
|
H A D | repr-css.cpp | 102 Glib::ustring::size_type len = text.bytes(); local 112 if ( len < 7 ) { 115 if ( len >= 9 ) { 119 if ( len < 6 ) { 122 if ( len >= 8 ) {
|
/inkscape/src/debug/ |
H A D | demangle.cpp | 30 size_t len=strlen(buffer); local 31 if ( buffer[len-1] == '\n' ) { 32 buffer[len-1] = '\000';
|
/inkscape/src/ui/widget/ |
H A D | color-entry.cpp | 67 ptrdiff_t len = end - str; local 68 if (len < 8) { 69 rgba = rgba << (4 * (8 - len));
|
/inkscape/src/2geom/ |
H A D | point.cpp | 75 double len = hypot(_pt[0], _pt[1]); local 76 if(len == 0) return; 77 if(IS_NAN(len)) return; 79 if(len != inf) { 80 *this /= len; 100 len = hypot(_pt[0], _pt[1]); 101 assert(len != inf); 102 *this /= len;
|
H A D | bezier-utils.cpp | 57 static void generate_bezier(Point b[], Point const d[], double const u[], unsigned len, 60 Point const data[], double const u[], unsigned len, 63 Point const data[], double const u[], unsigned len); 64 static void reparameterize(Point const d[], unsigned len, double u[], Point const bezCurve[]); 67 static Point darray_right_tangent(Point const d[], unsigned const len); 69 static void chord_length_parameterize(Point const d[], double u[], unsigned len); 70 static double compute_max_error_ratio(Point const d[], double const u[], unsigned len, 109 bezier_fit_cubic(Point *bezier, Point const *data, int len, double error) argument 111 return bezier_fit_cubic_r(bezier, data, len, error, 1); 124 bezier_fit_cubic_r(Point bezier[], Point const data[], int const len, doubl argument 192 bezier_fit_cubic_full(Point bezier[], int split_points[], Point const data[], int const len, Point const &tHat1, Point const &tHat2, double const error, unsigned const max_beziers) argument [all...] |
H A D | svg-path-parser.cpp | 1113 void SVGPathParser::parse(char const *str, int len) argument 1115 if (len < 0) { 1116 len = std::strlen(str); 1118 _parse(str, str + len, true); 1126 void SVGPathParser::feed(char const *str, int len) argument 1128 if (len < 0) { 1129 len = std::strlen(str); 1131 _parse(str, str + len, false);
|
/inkscape/src/io/ |
H A D | base64stream.cpp | 99 int len = source.available() * 2 / 3; local 100 return len;
|
H A D | sys.cpp | 315 gssize len, 322 gchar *newFileName = g_locale_to_utf8( opsysstring, len, bytes_read, bytes_written, error ); 334 // TODO handle cases when len >= 0 314 locale_to_utf8_fallback( const gchar *opsysstring, gssize len, gsize *bytes_read, gsize *bytes_written, GError **error ) argument
|
/inkscape/src/live_effects/ |
H A D | lpe-spiro.cpp | 49 guint len = curve->get_segment_count() + 2; local 52 Spiro::spiro_cp *path = g_new (Spiro::spiro_cp, len);
|
H A D | lpe-ellipse_5pts.cpp | 170 double len; local 181 len = 4*tan((e - s)/4)/3; 184 x1 = x0 + len * cos(s + M_PI_2); 185 y1 = y0 + len * sin(s + M_PI_2); 188 x2 = x3 + len * cos(e - M_PI_2); 189 y2 = y3 + len * sin(e - M_PI_2);
|
H A D | lpe-powerstroke-interpolators.h | 186 guint len = points.size(); local 187 Spiro::spiro_cp *controlpoints = g_new (Spiro::spiro_cp, len); 188 for (unsigned int i = 0; i < len; ++i) { 195 controlpoints[len-2].ty = 'v'; 196 controlpoints[len-1].ty = '}'; 198 Spiro::spiro_run(controlpoints, len, fit);
|
/inkscape/src/ui/dialog/ |
H A D | object-attributes.cpp | 165 int len = 0; local 166 while (desc[len].label) 168 labels.push_back(desc[len].label); 169 attrs.push_back (desc[len].attribute); 170 len += 1;
|
/inkscape/src/ |
H A D | viewbox.cpp | 104 int len = e - p; local 106 if (len > 8) { // Can't have buffer overflow as 8 < 256 111 memcpy (c, value, len); 113 c[len] = 0;
|
H A D | sp-switch.cpp | 67 gint len = this->getItemCount(); local 69 ngettext(_("of <b>%d</b> object"), _("of <b>%d</b> objects"), len), len);
|
H A D | uri-references.cpp | 175 size_t const len = strlen(id); local 176 if (len < 3 || strcmp(id + len - 2, "))")) {
|
H A D | prefix.cpp | 118 size_t len; local 128 len = strlen (path); 129 if (len > 10 && strcmp (path + len - 10, " (deleted)") == 0) 131 tmp = path + len - 10; 321 size_t len; local 325 len = strlen (str); 326 if (!len) return strdup (""); 327 if (size > len) size = len; [all...] |
H A D | deptool.cpp | 810 int len = fread(readBuf, 1, readBufLen, f); local 811 readBuf[len] = '\0';
|
/inkscape/src/svg/ |
H A D | svg-length-test.h | 35 SVGLength len; local 36 TSM_ASSERT(absolute_tests[i].str , len.read(absolute_tests[i].str)); 37 TSM_ASSERT_EQUALS(absolute_tests[i].str , len.unit , absolute_tests[i].unit); 38 TSM_ASSERT_EQUALS(absolute_tests[i].str , len.value , absolute_tests[i].value); 39 TSM_ASSERT_EQUALS(absolute_tests[i].str , len.computed , absolute_tests[i].computed); 42 SVGLength len; local 43 TSM_ASSERT(relative_tests[i].str , len.read(relative_tests[i].str)); 44 len.update(7,13,19); 45 TSM_ASSERT_EQUALS(relative_tests[i].str , len.unit , relative_tests[i].unit); 46 TSM_ASSERT_EQUALS(relative_tests[i].str , len 50 SVGLength len; local 58 SVGLength len; local 65 SVGLength len; local 73 SVGLength len; local 84 SVGLength len; local 91 SVGLength len; local 95 SVGLength len; local [all...] |
/inkscape/src/widgets/ |
H A D | ege-paint-def.cpp | 152 void PaintDef::getMIMEData(std::string const & type, char*& dest, int& len, int& format) argument 158 len = 8; 167 len = 8; 196 len = tmp.size(); 197 dest = new char[len]; 199 memcpy(dest, tmp.c_str(), len); 204 len = 0; 208 bool PaintDef::fromMIMEData(std::string const & type, char const * data, int len, int /*format*/) argument 215 std::string xml(data, len);
|
/inkscape/src/filters/ |
H A D | image.cpp | 140 int len; local 149 len = e - p; 150 if (len > 8) break; 151 memcpy (c, value, len); 152 c[len] = 0;
|
/inkscape/src/libcroco/ |
H A D | cr-utils.c | 73 gint len = 0; local 168 len++; 171 *a_len = len; 190 gint len = 0; local 200 len += 1; 203 len += 2; 205 len += 3; 207 len += 4; 209 len += 5; 211 len 233 gint len = 0; local 579 gint len = 0; local [all...] |
/inkscape/src/display/ |
H A D | nr-svgfonts.cpp | 166 unsigned int len; local 173 if ( (len = size_of_substring(this->glyphs[i]->unicode.c_str(), _utf8)) ){ 175 _utf8+=len; 201 len = 0; 205 if ( (len = size_of_substring(this->glyphs[i]->unicode.c_str(), _utf8)) ){ 226 _utf8+=len; //advance 'len' bytes in our string pointer 232 if (len==0){
|
/inkscape/cxxtest/cxxtest/ |
H A D | X11Gui.h | 296 unsigned len = strlen( str ); local 298 int textWidth = XTextWidth( _fontInfo, str, len ); 302 str, len );
|