Assistance with DUB

2016-11-01 Thread Alfred Newman via Digitalmars-d-learn
Greetings, I need some help with dub libraries. Executing "dub list" in my machine, I got the following: Packages present in the system and known to dub: colorize ~master: C:\Users\Alfred\AppData\Roaming\dub\packages\colorize-master\colorize\ ... sqlite-d ~master: C:\Users\Alfred\AppData\Roa

Re: SQLite

2016-11-01 Thread Alfred Newman via Digitalmars-d-learn
On Friday, 21 October 2016 at 10:50:30 UTC, Vadim Lopatin wrote: On Wednesday, 19 October 2016 at 16:01:37 UTC, Alfred Newman wrote: Hello, I am trying to handle a SQLite3 table with D. During my researchs, I discovered the lib https://dlang.org/phobos/etc_c_sqlite3.html. However, for any r

Re: Newbie: can't manage some types...

2016-10-31 Thread Alfred Newman via Digitalmars-d-learn
On Monday, 31 October 2016 at 11:44:25 UTC, Cleverson Casarin Uliana wrote: Hello all, I'm trying to do two tasks which involves some type conversion, and I'm having dificulties, probably because I haven't yet understood well how such types works. First, I wanted to convert UTF-8 strings to an

Re: Parse a String given some delimiters

2016-10-30 Thread Alfred Newman via Digitalmars-d-learn
On Sunday, 30 October 2016 at 23:47:54 UTC, Ali Çehreli wrote: On 10/30/2016 01:50 PM, Alfred Newman wrote: [...] Here is something along the lines of what others have suggested: auto parse(R, S)(R range, S separators) { import std.algorithm : splitter, filter, canFind; import std.ran

Parse a String given some delimiters

2016-10-30 Thread Alfred Newman via Digitalmars-d-learn
Hello, I'm migrating some Python code to D, but I stuck at a dead end... Sorry to provide some .py lines over here, but I got some doubts about the best (fastest) way to do that in D. Executing the function parsertoken("_My input.string", " _,.", 2) will result "input". Parsercount("Dlang

Re: Best approach to handle accented letters

2016-10-28 Thread Alfred Newman via Digitalmars-d-learn
On Friday, 28 October 2016 at 15:08:59 UTC, Chris wrote: On Friday, 28 October 2016 at 14:31:47 UTC, Chris wrote: [...] What you basically do is you pass the logic on to `map` and `map` applies it to each item in the range (cf. [1]): [...] The life is beautiful ! Thx.

Re: Best approach to handle accented letters

2016-10-28 Thread Alfred Newman via Digitalmars-d-learn
On Friday, 28 October 2016 at 11:40:37 UTC, Chris wrote: On Friday, 28 October 2016 at 11:24:28 UTC, Alfred Newman wrote: Hello, I'm getting some troubles to replace the accented letters in a given string with their unaccented counterparts. Let's say I have the following input string "très é

Best approach to handle accented letters

2016-10-28 Thread Alfred Newman via Digitalmars-d-learn
Hello, I'm getting some troubles to replace the accented letters in a given string with their unaccented counterparts. Let's say I have the following input string "très élégant" and I need to create a function to return just "tres elegant". Considering we need to take care about unicode char

SQLite

2016-10-19 Thread Alfred Newman via Digitalmars-d-learn
Hello, I am trying to handle a SQLite3 table with D. During my researchs, I discovered the lib https://dlang.org/phobos/etc_c_sqlite3.html. However, for any reason, there is no code snippets or sample codes available there. So, I am stucked. I have the following sample structure table:

Re: From Python to Dlang

2016-10-18 Thread Alfred Newman via Digitalmars-d-learn
@All, thanks a lot !

From Python to Dlang

2016-10-18 Thread Alfred Newman via Digitalmars-d-learn
Hello and greetings, I'm a brand new D developer coming from Python. I decided to move to D, mainly because it's a compiled language and has a great runtime speed (and I don't feel confortable at Cython environment at all). And of course, D has a nice community and the language has nice synta