Searched defs:str (Results 1 - 25 of 133) sorted by relevance

123456

/inkscape/src/svg/
H A Dstrip-trailing-zeros.cpp11 strip_trailing_zeros(string str) argument
13 string::size_type p_ix = str.find('.');
15 string::size_type e_ix = str.find('e', p_ix);
17 * Default to avoiding `e', e.g. using sprintf(str, "%17f", d). Add a new function that
20 string::size_type nz_ix = str.find_last_not_of('0', (e_ix == string::npos
26 str.erase(str.begin() + (nz_ix == p_ix
30 ? str.end()
31 : str.begin() + e_ix));
34 return str;
[all...]
H A Dstringstream.cpp37 os << strip_trailing_zeros(s.str());
58 os << strip_trailing_zeros(s.str());
81 Inkscape::SVGIStringStream::SVGIStringStream(const std::string& str):std::istringstream(str) argument
H A Dsvg-path.cpp36 * Parses the path in str. When an error is found in the pathstring, this method
38 * Returns an empty PathVector when str==NULL
40 Geom::PathVector sp_svg_read_pathv(char const * str) argument
43 if (!str)
44 return pathv; // return empty pathvector when str == NULL
51 parser.parse(str);
56 //g_warning("Malformed SVG path, truncated path up to where error was found.\n Input path=\"%s\"\n Parsed path=\"%s\"", str, sp_svg_write_path(pathv));
62 static void sp_svg_write_curve(Inkscape::SVG::PathString & str, Geom::Curve const * c) { argument
68 str.verticalLineTo( line_segment->finalPoint()[Geom::Y] );
70 str
101 sp_svg_write_path(Inkscape::SVG::PathString & str, Geom::Path const & p) argument
114 Inkscape::SVG::PathString str; local
124 Inkscape::SVG::PathString str; local
[all...]
H A Dcss-ostringstream.h45 return ostr.str().c_str();
48 std::string str() const { function in class:Inkscape::CSSOStringStream
49 return ostr.str();
H A Dsvg-angle.cpp30 static bool sp_svg_angle_read_lff(gchar const *str, SVGAngle::Unit &unit, float &val, float &computed);
42 bool SVGAngle::read(gchar const *str) argument
44 if (!str) {
51 if (!sp_svg_angle_read_lff(str, u, v, c)) {
70 void SVGAngle::readOrUnset(gchar const *str, Unit u, float v, float c) { argument
71 if (!read(str)) {
76 static bool sp_svg_angle_read_lff(gchar const *str, SVGAngle::Unit &unit, float &val, float &computed) argument
78 if (!str) {
83 float const v = g_ascii_strtod(str, (char **) &e);
84 if (e == str) {
[all...]
H A Dstringstream.h44 return ostr.str().c_str();
47 std::string str() const { function in class:Inkscape::SVGOStringStream
48 return ostr.str();
51 void str (std::string &s) { function in class:Inkscape::SVGOStringStream
52 ostr.str(s);
80 SVGIStringStream(const std::string &str);
H A Dsvg-color-test.h15 char const* str; member in struct:SVGColorTest::simpleIccCase
96 gchar const* str = cases[i].str; local
99 std::string testDescr( cases[i].str );
101 bool parseRet = sp_svg_read_icc_color( str, &result, &tmp );
105 TSM_ASSERT_DIFFERS( testDescr, str, result );
108 TSM_ASSERT_EQUALS( testDescr, str, result );
H A Dsvg-length.cpp23 static unsigned sp_svg_length_read_lff(gchar const *str, SVGLength::Unit *unit, float *val, float *computed, char **next);
29 unsigned int sp_svg_number_read_f(gchar const *str, float *val) argument
31 if (!str) {
36 float const v = g_ascii_strtod(str, &e);
37 if ((gchar const *) e == str) {
45 unsigned int sp_svg_number_read_d(gchar const *str, double *val) argument
47 if (!str) {
52 double const v = g_ascii_strtod(str, &e);
53 if ((gchar const *) e == str) {
181 bool SVGLength::read(gchar const *str)
[all...]
/inkscape/src/live_effects/parameter/
H A Darray.cpp21 ArrayParam<double>::readsvg(const gchar * str) argument
24 sp_svg_number_read_d(str, &newx);
30 ArrayParam<float>::readsvg(const gchar * str) argument
33 sp_svg_number_read_f(str, &newx);
39 ArrayParam<Geom::Point>::readsvg(const gchar * str) argument
41 gchar ** strarray = g_strsplit(str, ",", 2);
H A Dbool.cpp49 gchar * str = g_strdup(value ? "true" : "false"); local
50 return str;
/inkscape/src/
H A Dextract-uri-test.h12 void checkOne( char const* str, char const* expected ) argument
14 gchar* result = extract_uri( str );
H A Dnumber-opt-number.h92 return g_strdup(os.str().c_str());
95 void set(char const *str) argument
97 if(!str)
100 char **values = g_strsplit(str, " ", 2);
/inkscape/src/libcroco/
H A Dcr-parsing-location.c106 gchar *str = NULL ; local
129 str = result->str ;
134 return str ;
148 gchar *str = NULL ; local
151 str = cr_parsing_location_to_string (a_this, a_mask) ;
152 if (str) {
153 fprintf (a_fp, "%s", str) ;
154 g_free (str) ;
155 str
[all...]
H A Dcr-stylesheet.c62 gchar *str = NULL; local
77 str = cr_statement_to_string (cur_stmt, 0) ;
78 if (str) {
79 g_string_append (stringue, str) ;
80 g_free (str) ;
81 str = NULL ;
85 str = stringue->str ;
89 return str ;
100 gchar *str local
[all...]
H A Dcr-simple-sel.c115 guchar *str = (guchar *) g_strndup (cur->name->stryng->str, local
118 if (str) {
136 g_string_append (str_buf, (const gchar *) str);
137 g_free (str);
138 str = NULL;
155 result = (guchar *) str_buf->str;
174 guchar *str = (guchar *) g_strndup (a_this->name->stryng->str, local
177 if (str) {
[all...]
/inkscape/src/xml/
H A Dquote-test.h63 char* str = xml_quote_strdup(cases[i].s1); local
64 TS_ASSERT_RELATION( streq_rel, cases[i].s2, str );
65 g_free(str);
H A Drebase-hrefs-test.h35 void dump_str(gchar const *str, gchar const *prefix) argument
40 size_t const total = strlen(str);
42 gchar *const tmp2 = g_strdup_printf(" %02x", (0x0ff & str[i]));
80 gchar *str = uri.toString(); local
87 str );
88 g_free(str);
100 gchar *str = again.toString();
107 str );
108 g_free(str);
/inkscape/src/ui/widget/
H A Dcolor-entry.cpp63 gchar *str = g_strdup(text.c_str()); local
65 guint64 rgba = g_ascii_strtoull(str, &end, 16);
66 if (end != str) {
67 ptrdiff_t len = end - str;
73 set_text(str);
79 g_free(str);
H A Dlabelled.cpp69 Labelled::setLabelText(const Glib::ustring &str) argument
71 _label->set_text(str);
/inkscape/src/extension/param/
H A Dcolor.cpp80 char str[16]; local
81 snprintf(str, 16, "%i", _color.value());
82 string += str;
/inkscape/src/libcola/
H A Dgradient_projection.cpp28 static void dumpVPSCException(char const *str, IncSolver* solver) { argument
29 cerr<<str<<endl;
59 } catch (char const *str) {
60 dumpVPSCException(str,solver);
112 } catch (char const *str) {
113 dumpVPSCException(str,solver);
/inkscape/src/2geom/
H A Dsvg-path-parser.h77 * @param str String to parse
79 void parse(char const *str, int len = -1);
88 * @param str String to parse
90 void feed(char const *str, int len = -1);
140 void _parse(char const *str, char const *strend, bool finish);
145 void parse_svg_path(char const *str, PathSink &sink);
148 inline void parse_svg_path(std::string const &str, PathSink &sink) { argument
149 parse_svg_path(str.c_str(), sink);
157 inline PathVector parse_svg_path(char const *str) { argument
162 parse_svg_path(str, generato
[all...]
H A Dsvg-path-writer.h42 * You can access the generated string by calling the str() method.
89 std::string str() const { return _s.str(); } function in class:Geom::SVGPathWriter
/inkscape/src/filters/
H A Dcolormatrix.cpp82 void SPFeColorMatrix::set(unsigned int key, gchar const *str) { argument
88 read_type = sp_feColorMatrix_read_type(str);
96 if (str){
97 this->values = helperfns_read_vector(str);
98 this->value = helperfns_read_number(str, HELPERFNS_NO_WARNING);
103 SPFilterPrimitive::set(key, str);
/inkscape/src/live_effects/
H A Dlpe-jointype.cpp95 Glib::ustring str; local
96 str += "url(#";
97 str += server->getId();
98 str += ")";
99 sp_repr_css_set_property (css, "fill", str.c_str());
131 Glib::ustring str; local
132 str += "url(#";
133 str += server->getId();
134 str += ")";
135 sp_repr_css_set_property (css, "stroke", str
[all...]

Completed in 69 milliseconds

123456