iv-phonic 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest.txt +1 -1
- data/Rakefile +1 -1
- data/ext/include/iv/ast.h +8 -3
- data/ext/include/iv/character.h +878 -0
- data/ext/include/iv/chars.h +15 -39
- data/ext/include/iv/conversions.h +41 -18
- data/ext/include/iv/dtoa.h +4 -4
- data/ext/include/iv/lexer.h +16 -4
- data/ext/include/iv/location.h +2 -0
- data/ext/include/iv/parser.h +98 -50
- data/ext/include/iv/stringpiece.h +3 -3
- data/ext/include/iv/ustringpiece.h +3 -3
- data/ext/iv/phonic/parser.h +1 -1
- metadata +4 -4
- data/ext/include/iv/algorithm.h +0 -23
@@ -1,5 +1,5 @@
|
|
1
|
-
#ifndef
|
2
|
-
#define
|
1
|
+
#ifndef _IV_STRINGPIECE_H_
|
2
|
+
#define _IV_STRINGPIECE_H_
|
3
3
|
#pragma once
|
4
4
|
|
5
5
|
#include <algorithm>
|
@@ -382,4 +382,4 @@ std::ostream& operator<<(std::ostream& o,
|
|
382
382
|
typedef BasicStringPiece<char, std::char_traits<char> > StringPiece;
|
383
383
|
|
384
384
|
} } // namespace iv::core
|
385
|
-
#endif //
|
385
|
+
#endif // _IV_STRINGPIECE_H_
|
@@ -1,9 +1,9 @@
|
|
1
|
-
#ifndef
|
2
|
-
#define
|
1
|
+
#ifndef _IV_USTRINGPIECE_H_
|
2
|
+
#define _IV_USTRINGPIECE_H_
|
3
3
|
#include "uchar.h"
|
4
4
|
#include "stringpiece.h"
|
5
5
|
namespace iv {
|
6
6
|
namespace core {
|
7
7
|
typedef BasicStringPiece<uc16, std::char_traits<uc16> > UStringPiece;
|
8
8
|
} } // namespace iv::core
|
9
|
-
#endif //
|
9
|
+
#endif // _IV_USTRINGPIECE_H_
|
data/ext/iv/phonic/parser.h
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 8
|
9
|
+
version: 0.0.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Constellation
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-01-11 00:00:00 +09:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -100,7 +100,6 @@ files:
|
|
100
100
|
- ext/include/iv/location.h
|
101
101
|
- ext/include/iv/ast_info.h
|
102
102
|
- ext/include/iv/none.h
|
103
|
-
- ext/include/iv/algorithm.h
|
104
103
|
- ext/include/iv/ustring.h
|
105
104
|
- ext/include/iv/ast_serializer.h
|
106
105
|
- ext/include/iv/utils.h
|
@@ -109,6 +108,7 @@ files:
|
|
109
108
|
- ext/include/iv/chars.h
|
110
109
|
- ext/include/iv/fixedcontainer.h
|
111
110
|
- ext/include/iv/ustringpiece.h
|
111
|
+
- ext/include/iv/character.h
|
112
112
|
- ext/include/iv/ucdata.h
|
113
113
|
- ext/iv/phonic/factory.h
|
114
114
|
- ext/iv/phonic/ast_fwd.h
|
data/ext/include/iv/algorithm.h
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
#ifndef _IV_ALGORITHM_H
|
2
|
-
#define _IV_ALGORITHM_H_
|
3
|
-
namespace iv {
|
4
|
-
namespace algorithm {
|
5
|
-
template<class InputIterator,
|
6
|
-
class OutputIterator,
|
7
|
-
class UnaryFunction,
|
8
|
-
class Predicate>
|
9
|
-
OutputIterator transform_if(InputIterator first,
|
10
|
-
InputIterator last,
|
11
|
-
OutputIterator result,
|
12
|
-
UnaryFunction f,
|
13
|
-
Predicate pred) {
|
14
|
-
while (first != last) {
|
15
|
-
if (pred(*first)) {
|
16
|
-
*result++ = f(*first);
|
17
|
-
}
|
18
|
-
++first;
|
19
|
-
}
|
20
|
-
return result;
|
21
|
-
}
|
22
|
-
} } // namespace iv::algorithm
|
23
|
-
#endif // _IV_ALGORITHM_H_
|