R15b01 #2

Merged
merged 3 commits into from Jun 8, 2012

3 participants

@lemenkov

Fixed compatibility issues with R15B01. Due to http deprecation this isn't compatible with R12B.

master and others added some commits Apr 10, 2012
@master master Fix OTP R15B compatibility issue (re:run instead of regexp:match). 37e5834
@lemenkov lemenkov Fix for R15B - usage of deprecated http
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
f609c30
@lemenkov lemenkov Off-by one error after switch to re:run/2
regexp:match(...) counts symbols starting from 0 while re:run(...) - from 1.

Eshell V5.6.5  (abort with ^G)
1> Str = "void* gn_construct_GdkPoint() {".
"void* gn_construct_GdkPoint() {"
2> {match,St,Le} = regexp:match(Str,"gn_construct_.*\\(").
{match,7,22}
3> string:substr(Str,St+13,Le-14).
"GdkPoint"
4>

Eshell V5.6.5  (abort with ^G)
1> Str = "void* gn_construct_GdkPoint() {".
"void* gn_construct_GdkPoint() {"
2> {match,[{St,Le}]} = re:run(Str,"gn_construct_.*\\(").
{match,[{6,22}]}
3> string:substr(Str,St+13,Le-14).
"_GdkPoin"
4> string:substr(Str,St+14,Le-14).
"GdkPoint"
5>

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
207589a
@massemanet massemanet merged commit f961795 into massemanet:master Jun 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment