}
-Glib::ustring
+string
InteropSubtitleAsset::xml_as_string () const
{
xmlpp::Document doc;
throw FileError ("Could not open file for writing", p, -1);
}
- Glib::ustring const s = xml_as_string ();
- fwrite (s.c_str(), 1, s.bytes(), f);
+ string const s = xml_as_string ();
+ /* length() here gives bytes not characters */
+ fwrite (s.c_str(), 1, s.length(), f);
fclose (f);
_file = p;
void add_font (std::string load_id, boost::filesystem::path file);
- Glib::ustring xml_as_string () const;
+ std::string xml_as_string () const;
void write (boost::filesystem::path path) const;
void resolve_fonts (std::list<boost::shared_ptr<Object> > objects);
void add_font_assets (std::list<boost::shared_ptr<Asset> >& assets);
return !ASDCP_FAILURE (r);
}
-Glib::ustring
+string
SMPTESubtitleAsset::xml_as_string () const
{
xmlpp::Document doc;
std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const;
- Glib::ustring xml_as_string () const;
+ std::string xml_as_string () const;
void write (boost::filesystem::path path) const;
void add (SubtitleString);
void add_font (std::string id, boost::filesystem::path file);
std::map<std::string, Data> fonts_with_load_ids () const;
virtual void write (boost::filesystem::path) const = 0;
- virtual Glib::ustring xml_as_string () const = 0;
+ virtual std::string xml_as_string () const = 0;
Time latest_subtitle_out () const;