/ Add the found path to the list. */ /
| 1189 | /* Add the found path to the list. */ |
| 1190 | /*********************************************************************************/ |
| 1191 | my_bool JSNX::AddPath(void) { |
| 1192 | char s[16]; |
| 1193 | |
| 1194 | if (Jp->WriteStr("\"$")) |
| 1195 | return true; |
| 1196 | |
| 1197 | for (int i = 0; i <= I; i++) { |
| 1198 | if (Jpnp[i].Type == TYPE_JAR) { |
| 1199 | snprintf(s, sizeof(s), "[%d]", Jpnp[i].N + B); |
| 1200 | |
| 1201 | if (Jp->WriteStr(s)) |
| 1202 | return true; |
| 1203 | |
| 1204 | } else { |
| 1205 | if (Jp->WriteChr('.')) |
| 1206 | return true; |
| 1207 | |
| 1208 | if (Jp->WriteStr(Jpnp[i].Key)) |
| 1209 | return true; |
| 1210 | |
| 1211 | } // endif's |
| 1212 | |
| 1213 | } // endfor i |
| 1214 | |
| 1215 | if (Jp->WriteStr("\",")) |
| 1216 | return true; |
| 1217 | |
| 1218 | return false; |
| 1219 | } // end of AddPath |
| 1220 | |
| 1221 | /* --------------------------------- JSON UDF ---------------------------------- */ |
| 1222 |