Jacob Perkins avatar Jacob Perkins committed cacaaa9

estring:startswith for vsn 1.7.1

Comments (0)

Files changed (3)

 {application, elib, [
 	{description, "Extended Erlang library modules"},
-	{vsn, "1.7.0"},
+	{vsn, "1.7.1"},
 	{mod, {elib, []}},
 	{registered, [elib_sup, timeout_server]},
 	{applications, [kernel, stdlib]},
-{"1.7.0", [
+{"1.7.1", [
 % upgrade instructions
+	{"1.7.0", [{load_module, estring}]},
 	{"1.6.4", [
 		{load_module, erlport_server},
 		{add_module, round_robin_server}
 	{"1.5.10", [{load_module, etable}]}
 ], [
 % downgrade instructions
+	{"1.7.0", [{load_module, estring}]},
 	{"1.6.4", [
 		{load_module, erlport_server},
 		{delete_module, round_robin_server}
--export([endswith/2, format/2, lower/1, shared_prefix/2]).
+-export([startswith/2, endswith/2, format/2, lower/1, shared_prefix/2]).
 -export([join/2, read_file/1, random/1]).
 -export([split/2, splitc/2, tokenize/2]).
 -export([replace/3, replace_all/3]).
 -export([urldecode/1, querydecode/1]).
 -export([is_utf8/1, encode_utf8/1, utf8_to_unicode/1]).
+startswith(S, Prefix) -> lists:prefix(Prefix, S).
 endswith(S, Suffix) ->
 	case string:right(S, length(Suffix)) of
 		Suffix -> true;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.