Skip to content

Commit e5c637f

Browse files
authored
Add more numeric prefixes (#12)
1 parent 620cc72 commit e5c637f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/naming.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ fn minor_numeric(value: i32) -> Result<&'static str, NamingError> {
120120
6 => "hexa",
121121
7 => "hepta",
122122
8 => "octa",
123+
9 => "nona",
124+
10 => "deca",
123125
_ => return Err(NamingError::GroupOccurrence(None, value)),
124126
};
125127
Ok(out)
@@ -137,6 +139,26 @@ fn major_numeric(value: i32) -> Result<&'static str, NamingError> {
137139
8 => "oct",
138140
9 => "non",
139141
10 => "dec",
142+
11 => "undec",
143+
12 => "dodec",
144+
13 => "tridec",
145+
14 => "tetradec",
146+
15 => "pentadec",
147+
16 => "hexadec",
148+
17 => "heptadec",
149+
18 => "octadec",
150+
19 => "nonadec",
151+
20 => "icos",
152+
21 => "henicos",
153+
22 => "docos",
154+
23 => "tricos",
155+
24 => "tetracos",
156+
25 => "pentacos",
157+
26 => "hexacos",
158+
27 => "heptacos",
159+
28 => "octacos",
160+
29 => "nonacos",
161+
30 => "triaconta",
140162
_ => return Err(NamingError::CarbonCount(value)),
141163
};
142164
Ok(out)

0 commit comments

Comments
 (0)