| 686 | |
| 687 | |
| 688 | static LIST * downcase_list( LIST * in ) |
| 689 | { |
| 690 | LIST * result = L0; |
| 691 | LISTITER iter = list_begin( in ); |
| 692 | LISTITER const end = list_end( in ); |
| 693 | |
| 694 | string s[ 1 ]; |
| 695 | string_new( s ); |
| 696 | |
| 697 | for ( ; iter != end; iter = list_next( iter ) ) |
| 698 | { |
| 699 | string_append( s, object_str( list_item( iter ) ) ); |
| 700 | downcase_inplace( s->value ); |
| 701 | result = list_push_back( result, object_new( s->value ) ); |
| 702 | string_truncate( s, 0 ); |
| 703 | } |
| 704 | |
| 705 | string_free( s ); |
| 706 | return result; |
| 707 | } |
| 708 | |
| 709 | |
| 710 | LIST * builtin_glob( FRAME * frame, int flags ) |
no test coverage detected