From 6bb5a81cee7e76e8a4e69f7f49869f39c1c382f0 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 5 Sep 2023 14:45:51 +0200 Subject: Adds some convenience methods. fl_filename_absolute can no generate a path using arbitrary source paths. Fl_Menu_ adds find_item_with_user_data and find_item_with_argument Fl_String adds find(string, start) --- FL/Fl_String.H | 1 + 1 file changed, 1 insertion(+) (limited to 'FL/Fl_String.H') diff --git a/FL/Fl_String.H b/FL/Fl_String.H index e0280f43c..dc0d8307a 100644 --- a/FL/Fl_String.H +++ b/FL/Fl_String.H @@ -113,6 +113,7 @@ public: Fl_String &operator+=(const char *src); Fl_String &operator+=(const Fl_String &src); Fl_String &operator+=(char c); + int find(const Fl_String &needle, int start_pos=0) const; Fl_String &replace(int at, int n_del, const char *src, int n_ins=npos); Fl_String &replace(int at, int n_del, const Fl_String &src); Fl_String substr(int pos=0, int n=npos) const; -- cgit v1.2.3