15 int num = (int)test_char;
17 if(num > 57 || num < 48)
25 int num = (int)test_char;
27 if(num > 57 || num < 48 || test_char ==
'.')
34 for(
int i=0;
i<test_str.length();
i++){
43 for(
int i=0;
i<test_str.length();
i++){
60 for(
int i=0;
i < num;
i++){
61 if(test == delimit[
i])
79 std::vector<string> null_res;
88 for(i=0; i < (rStack.length()-rNeedle.length()) + 1; i++){
98 for(
int j=0;
j<rNeedle.length();
j++){
99 if( rStack[i+
j] != rNeedle[
j] )
100 needle_found =
false;
113 i += rNeedle.length();
140 std::vector<string> values;
151 int end = rStack.length();
154 for(end=0; end<rStack.length(); end++){
165 for(i; i < limit; i++){
171 values.push_back(val);
189 std::vector<string> null_res;
199 for(i=0; i < (rStack.length()-rNeedle.length()) + 1; i++){
209 for(
int j=0;
j<rNeedle.length();
j++){
210 if( rStack[i+
j] != rNeedle[
j] )
211 needle_found =
false;
224 i += rNeedle.length();
251 std::vector<string> values;
276 while(c !=
' ' && c !=
',' && c !=
'='){
286 values.push_back(val);
296 for(
int i=0;
i<size;
i++){
305 long double dist(
long double *coord1,
long double *coord2,
int size){
307 long double total = 0;
309 for(
int i=0;
i<size;
i++){
310 total +=
pow( coord2[
i] - coord1[
i], 2 );
337 line.
vals =
new long double[3];
346 tpt.
vals =
new long double[3];
355 checkvec.
vals =
new long double[3];
359 checkvec.
vals[2] = 0.0;
378 ret.
vals =
new long double[3];
392 long double ret_val = 0.0;
394 for(
int i=0;
i<vec1.
size;
i++){
404 long double *zer =
new long double;
407 long double ret = ( (*zer) / (*zer) );
415 std::vector<string> ret;
417 string::size_type start = full.find_first_not_of(delimiters, 0);
418 string::size_type end = full.find_first_of(delimiters, start);
420 while(start != string::npos || end != string::npos){
421 ret.push_back(full.substr(start, end-start));
423 start = full.find_first_not_of(delimiters, end);
424 end = full.find_first_of(delimiters, start);
431 for(
int vec1_element_num = 0; vec1_element_num < vector_1.size(); vec1_element_num++){
433 bool match_found =
false;
434 for(
int vec2_element_num = 0; vec2_element_num < vector_2.size(); vec2_element_num++){
437 if(vector_1[vec1_element_num] == vector_2[vec2_element_num]){
468 int arr_size =
size / (
sizeof(int)*8);
472 map =
new int[arr_size];
474 for(
int i=0;
i<arr_size;
i++){
490 int arr_size =
size / (
sizeof(int)*8);
494 map =
new int[arr_size];
496 for(
int i=0;
i<arr_size;
i++){
508 int new_size = n / (
sizeof(int)*8);
511 int old_size =
size / (
sizeof(int)*8);
516 map =
new int[ new_size ];
518 for(
int i=0;
i < new_size;
i++){
524 temp =
new int[ new_size ];
526 for(
int i=0;
i < new_size;
i++){
530 for(
int i=0;
i < old_size;
i++){
548 int index = n / (
sizeof(int) * 8);
549 int num = n % (
sizeof(int) * 8);
551 int entry =
map[index];
553 int set = 0x00000001;
564 int index = n / (
sizeof(int) * 8);
565 int num = n % (
sizeof(int) * 8);
567 int entry =
map[index];
569 int set = 0x00000001;
581 if(n >=
size || n < 0)
584 int index = n / (
sizeof(int) * 8);
585 int num = n % (
sizeof(int) * 8);
587 int entry =
map[index];
589 entry = entry >> num;
590 entry = entry & 0x00000001;
592 if(entry == 0x00000001)
bool check_non_numeric_char_per(char test_char)
bool check_bool_arr(bool test[], int size)
std::vector< string > readCommaExpression(string rStack, string rNeedle)
Point object that represents a single point.
string itoa(int n)
Convert an int to a string.
VectorS3< FT > cross_product(const VectorS3< FT > &v, const VectorS3< FT > &w)
bool check_non_numeric_char(char test_char)
bool check_non_numeric_str_per(string test_str)
bitmap & operator=(const bitmap &b)
std::vector< string > readQuoteExpression(string rStack, string rNeedle)
Read expressions of the form x = "test" "100" "another test".
bool pnt_in_tri(pnt test, pnt p1, pnt p2, pnt p3)
long double dist(long double *coord1, long double *coord2, int size)
bool same_elements(std::vector< int > vector_1, std::vector< int > vector_2)
long double dot_product(pnt vec1, pnt vec2)
bool side_check(pnt test, pnt p1, pnt p2, pnt check)
std::vector< string > str_tokenize(string full, string delimiters)
double pow(double value, const Exponent &exp)
bool check_non_numeric_str(string test_str)
bool check_delimiters(char *delimit, int num, char test)