Displaying 8 results from an estimated 8 matches for "line_num".
2010 Oct 10
2
Help reading table rows into lists
..."),COG0003=c("pathf","pathg","pathh"))
I am stuck and have tried various methods involving (probably mangled)
versions of lappy and loops.
Any suggestions on the most efficient way to do this would be great.
Thanks,
Alison
Here is my latest attempt.
#####
line_num<-length(scan(file="/g/bork8/waller/
test_COGtoPath.txt",what="character",sep="\n"))
COG2Path<-vector("list",line_num)
COG2Path<-lapply(1:(line_num-1),function(x) scan(file="/g/bork8/waller/
test_COGtopath.txt",skip=x,nlines=1,quiet=T,what...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...playout, paragraphs[i].attrs_list);
- }
-
- pango_layout_set_text (playout,
- paragraphs[i].text + block->index_ + skip,
- paragraphs[i].text_length - block->index_ - skip);
-
- if (iter->next != NULL && text->word_wrap)
- {
- PangoLayoutLine *line;
- int line_num;
- guint skip_new;
-
- pango_layout_index_to_line_x (playout, length - skip, FALSE, &line_num,
- NULL);
- line = pango_layout_get_line_readonly (playout, line_num);
- skip_new = line->start_index + line->length - (length - skip);
- pango_layout_set_text (playout,
- paragraphs[i].t...
2007 Nov 04
0
7 commits - libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_field_movie_html.c
...end_of_paragraph = TRUE;
if (iter->next != NULL && text->text->word_wrap)
{
PangoLayoutLine *line;
@@ -593,12 +599,15 @@ swfdec_text_field_movie_get_layouts (SwfdecTextFieldMovie *text, int *num,
pango_layout_index_to_line_x (playout, length - skip, FALSE, &line_num,
NULL);
- line = pango_layout_get_line_readonly (playout, line_num);
- skip_new = line->start_index + line->length - (length - skip);
- pango_layout_set_text (playout,
- text->input->str + paragraphs[i].index_ + block->index_ + skip,
- length - skip + skip_new);
- skip...
2005 Aug 22
0
Segfault in imap
...#8 0x08060877 in main (argc=1, argv=0xbffffa44, envp=0xbffffa4c) at main.c:229
(gdb) p *data
$1 = {flags = 0, date = 0, received_date = 1124608407, virtual_size = 2870,
physical_size = 2856, sent_date = {time = -1, timezone = 0}, parse_line = {
field_idx = 0, start_pos = 0, end_pos = 0, line_num = 0, cache = 0},
parse_line_num = 0, parts = 0x0, envelope = 0x0, body = 0x0,
bodystructure = 0x0, uid_string = 0x0, envelope_data = 0x0, seq = 11473,
rec = 0xb7de7088, cache_flags = 0, access_part = 3, stream = 0x80cc224,
filter_stream = 0x0, hdr_size = {physical_size = 2545, virtual_s...
2006 Jan 31
1
beta2: strange assert
...module_contexts = {buffer = 0xbbad8, element_size = 4}}, data = {
flags = MAIL_SEEN, date = 0, received_date = 1138391916,
virtual_size = 35917, physical_size = 35337, sent_date = {time = -1,
timezone = 0}, parse_line = {field_idx = 4294967295, start_pos = 168,
end_pos = 201, line_num = 32, cache = 1}, parse_line_num = 41,
parts = 0x0,
envelope = 0xc0f10 "\"Fri, 27 Jan 2006 14:58:13 -0500 (EST)\" \"Your Order Confirmation\" ((NIL NIL \"customerservice\" \"studentuniverse.com\")) ((NIL NIL \"customerservice\" \"s...
2005 Jun 04
0
Crash and Assertion Error
...0587 in main (argc=1, argv=0xbffffa44, envp=0xbffffa4c) at main.c:228
(gdb) p *data
$2 = {flags = 0, date = 0, received_date = 1117844856, virtual_size = 2735,
physical_size = 2721, sent_date = {time = -1, timezone = 0}, parse_line = {
field_idx = 4294967295, start_pos = 67, end_pos = 118, line_num = 29,
cache = 1}, parse_line_num = 53, parts = 0x80cb018, envelope = 0x0,
body = 0x0, bodystructure = 0x0, uid_string = 0x0, envelope_data = 0x0,
seq = 9276, rec = 0xb7dd3854, cache_flags = 0, stream = 0x80f53c4,
filter_stream = 0x0, hdr_size = {physical_size = 2347, virtual_size = 23...
2007 Oct 18
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...cairo_t *cr,
paragraphs[i].text + block->index_ + skip,
paragraphs[i].text_length - block->index_ - skip);
- if (iter->next != NULL && text->word_wrap)
+ if (iter->next != NULL && text->text->word_wrap)
{
PangoLayoutLine *line;
int line_num;
@@ -498,17 +538,36 @@ swfdec_text_field_movie_generate_layouts (SwfdecTextField *text, cairo_t *cr,
layouts = g_array_append_val (layouts, layout);
- if (!text->word_wrap)
+ if (!text->text->word_wrap)
break;
}
}
+ if (paragraphs_free != NULL) {
+ swfd...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...gt;index_ + skip,
+ paragraphs[i].length - block->index_ - skip);
if (iter->next != NULL && text->text->word_wrap)
{
@@ -504,7 +501,7 @@ swfdec_text_field_movie_get_layouts (SwfdecTextFieldMovie *text, int *num,
line = pango_layout_get_line_readonly (playout, line_num);
skip_new = line->start_index + line->length - (length - skip);
pango_layout_set_text (playout,
- paragraphs[i].text + block->index_ + skip,
+ text->input->str + paragraphs[i].index_ + block->index_ + skip,
length - skip + skip_new);
skip = skip_new;
}...