José Valim
27ba6c644b
Update inspect on bitstring to use new notation
2012-09-13 11:30:55 +02:00
José Valim
e32380ea6c
Keep Binary.Inspect (no need to rename it)
2012-09-13 11:30:55 +02:00
José Valim
e4ad1c14e4
Docs for functions without implementation are automatically marked as defcallback
2012-09-12 12:59:22 +02:00
José Valim
2431aa5183
Module.split also accepts binaries
2012-09-12 11:26:22 +02:00
José Valim
c7a7022bf3
Properly expand other unquote expressions
2012-09-11 22:19:31 +02:00
Gustavo Dutra
5bb8cca386
Added more tests
2012-09-11 13:13:19 -03:00
Gustavo Dutra
a5cebfbd3a
Added support for String.duplicate/2
2012-09-11 12:05:59 -03:00
Gustavo Dutra
41e550aadb
Added support for String.replace/3 and String.replace/4
2012-09-11 12:05:59 -03:00
José Valim
284093e3a6
Use new bitstring syntax, make rstrip tail recursive
2012-09-11 11:00:25 +02:00
José Valim
ede6e604c0
Merge remote-tracking branch 'guedes/string_upcase_downcase_implementation'
...
Conflicts:
lib/elixir/lib/string.ex
2012-09-11 10:49:37 +02:00
Dickson S. Guedes
e7c1473d7a
String improvements
...
This implements rstrip, lstrip and strip. refs #456
2012-09-10 20:19:12 -03:00
José Valim
6c96c3473a
Add support to on_definition hooks, closes #448
2012-09-10 21:50:23 +02:00
José Valim
6ffcd51f1a
Make overridable internal function more readable
2012-09-10 20:47:41 +02:00
José Valim
26204441bb
Implement new bitstring syntax, closes #421
2012-09-10 13:45:45 +02:00
José Valim
c63a07f928
Now we employ consistently zero-based indexes, closes #459
2012-09-10 10:39:21 +02:00
José Valim
1fa253086d
Merge pull request #460 from guedes/string_upcase_downcase_implementation
...
Improvements on String module
2012-09-09 23:12:39 -07:00
José Valim
064d449a0a
Merge pull request #449 from bellthoven/support_negative_numbers
...
Adding support for Enum.split to accept negative numbers
2012-09-09 23:09:44 -07:00
Dickson S. Guedes
2ea812f7da
implemented String.(r|l)strip
2012-09-09 23:55:45 -03:00
Dickson S. Guedes
35a6e24020
implementation of upcase and downcase
2012-09-09 19:27:20 -03:00
José Valim
aebbf68d73
Binary module is gone, long live String
2012-09-09 23:14:55 +02:00
José Valim
8f962fd739
Ensure we don't try to print <<193>>
2012-09-09 22:48:30 +02:00
José Valim
dcae67ee1b
Add a String module responsible for handling UTf-8 binaries
2012-09-09 22:24:41 +02:00
José Valim
ce37416cc6
defmodule returns the module binary
2012-09-07 19:19:05 +02:00
José Valim
fe381f970e
Break IEx into its own application
2012-09-06 13:50:51 +02:00
José Valim
5df46d54ef
ExUnit now supports after_spawn callbacks
...
Such callbacks are invoked after each process is spawned.
This commit also refactors ExUnit.Runner slightly to consume
information from ExUnit.Server gradually instead of retrieving
it all up-front. This small step allows us to have ExUnit
running in the background in the future or to run many suites
at once.
2012-09-06 12:52:46 +02:00
José Valim
ef4415339e
File.iterator should strip new lines
2012-09-05 10:16:03 +02:00
José Valim
f4ade44414
Add ensure_loaded? and ensure_compiled? conveniences
2012-09-05 09:45:16 +02:00
José Valim
0dcf8c23d4
Ensure pipe op can start at new line, closes #450
2012-09-04 11:49:04 +02:00
José Valim
7e48450296
Leave it up to tasks to remove code paths
2012-09-03 15:30:32 +02:00
Gustavo Dutra
2d1de31278
Adding support for Enum.split to accept negative numbers
2012-08-31 13:49:25 -03:00
José Valim
be1b4a12af
Provide just Module.split/1 for now that returns binaries
2012-08-30 14:29:51 -03:00
José Valim
8cd66cf336
Merge pull request #444 from khia/features/indexes_in_records
...
Implementation for Record.__index__
2012-08-30 05:24:53 -07:00
ILYA Khlopotov
567dfd21d7
Implementation of Module.split_name
2012-08-29 23:46:30 -07:00
ILYA Khlopotov
f7aa17a2fd
Implementation for Record.__index__
2012-08-29 20:34:32 -07:00
José Valim
6a516efc1b
Allow mod.unquote(fun)(args) on quote
2012-08-28 16:10:08 -03:00
José Valim
c229d34c03
Fix precedene of @ operator
2012-08-27 19:12:09 -03:00
José Valim
cb78831b4e
Properly expand access on module attributes
2012-08-27 15:54:43 -03:00
José Valim
fd963b16e0
Provide Regex.captures instead of Regex.match
2012-08-26 23:24:50 -03:00
José Valim
89b5e340e9
Merge pull request #434 from khia/features/named_groups_in_regexp
...
Support for named groups in Regexp.scan and Regexp.run
2012-08-26 18:22:23 -07:00
José Valim
e0d585b1d2
Improvements to the access protocol
...
* Allow @config[:access] to expand to (@config)[:access]
* Allow nil[:access] to work as expected
2012-08-24 13:03:02 -03:00
ILYA Khlopotov
c6629af897
Fixing the crash in Macro.to_binary when it receives a list. I.e. something like (quote do: foo([1, 2, 3])).
2012-08-22 14:41:14 -07:00
José Valim
68828d2b49
Code.require_file and Code.load_file now expect the full name as argument
2012-08-21 11:21:21 -03:00
José Valim
2a94699d79
Allow files to be unloaded
2012-08-21 10:37:31 -03:00
José Valim
24bc3668a6
Add Enum.count, allow behaviour to define default functions
2012-08-17 16:08:38 -03:00
José Valim
705aa84c5a
Fix fake warning when a match happens after a default arg
2012-08-16 14:19:07 -03:00
José Valim
2a26eb4e52
Add Record.defmacros
2012-08-15 15:36:34 -03:00
José Valim
7e039f7fcf
Allow access protocol to be invoked on the currently being defined record
2012-08-15 14:21:45 -03:00
ILYA Khlopotov
317819319c
Support for named groups in Regexp.
2012-08-15 09:19:40 -07:00
ILYA Khlopotov
fdc08d15a9
'return' option is added to Regex.run and Regex.scan
2012-08-15 00:25:15 -07:00
ILYA Khlopotov
66955b18cd
Adding test case for Regex.index with list arguments.
2012-08-15 00:23:50 -07:00