summaryrefslogtreecommitdiff
path: root/apidocs/icalrecur_8h.html
blob: e411e7aa433a59b09c8e7299c35b0ce46b6ade45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Libical API Documentation: icalrecur.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Libical API Documentation
   &#160;<span id="projectnumber">3.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b7a0ea939f6e83384f3c571d31a84be9.html">libical</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">icalrecur.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Routines for dealing with recurring time.  
<a href="#details">More...</a></p>

<p><a href="icalrecur_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structicalrecurrencetype.html">icalrecurrencetype</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a88c777bba1c5287ec7a262a8cf140209"><td class="memItemLeft" align="right" valign="top"><a id="a88c777bba1c5287ec7a262a8cf140209"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ICAL_BY_DAY_SIZE</b>&#160;&#160;&#160;7*(ICAL_BY_WEEKNO_SIZE-1)+1   /* 1 to N */</td></tr>
<tr class="separator:a88c777bba1c5287ec7a262a8cf140209"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7660eef516049982e6ea1aa56d7a14f"><td class="memItemLeft" align="right" valign="top"><a id="af7660eef516049982e6ea1aa56d7a14f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ICAL_BY_HOUR_SIZE</b>&#160;&#160;&#160;25      /* 0 to 23 */</td></tr>
<tr class="separator:af7660eef516049982e6ea1aa56d7a14f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1328acf3383993b85d9819702a94dd8a"><td class="memItemLeft" align="right" valign="top"><a id="a1328acf3383993b85d9819702a94dd8a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ICAL_BY_MINUTE_SIZE</b>&#160;&#160;&#160;61      /* 0 to 59 */</td></tr>
<tr class="separator:a1328acf3383993b85d9819702a94dd8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ba206a293eca6a045c9e24b75516528"><td class="memItemLeft" align="right" valign="top"><a id="a3ba206a293eca6a045c9e24b75516528"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ICAL_BY_MONTH_SIZE</b>&#160;&#160;&#160;14      /* 1 to 13 */</td></tr>
<tr class="separator:a3ba206a293eca6a045c9e24b75516528"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d6e5cf6656a21e1fede23a4af633f31"><td class="memItemLeft" align="right" valign="top"><a id="a7d6e5cf6656a21e1fede23a4af633f31"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ICAL_BY_MONTHDAY_SIZE</b>&#160;&#160;&#160;32      /* 1 to 31 */</td></tr>
<tr class="separator:a7d6e5cf6656a21e1fede23a4af633f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acec51b2d651f24e31b00627b60b12728"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#acec51b2d651f24e31b00627b60b12728">ICAL_BY_SECOND_SIZE</a>&#160;&#160;&#160;62      /* 0 to 60 */</td></tr>
<tr class="separator:acec51b2d651f24e31b00627b60b12728"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a02214312ee862af943de714ad30c1f"><td class="memItemLeft" align="right" valign="top"><a id="a8a02214312ee862af943de714ad30c1f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ICAL_BY_SETPOS_SIZE</b>&#160;&#160;&#160;ICAL_BY_YEARDAY_SIZE          /* 1 to N */</td></tr>
<tr class="separator:a8a02214312ee862af943de714ad30c1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a213222b2455537fceb2814e9e084e95a"><td class="memItemLeft" align="right" valign="top"><a id="a213222b2455537fceb2814e9e084e95a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ICAL_BY_WEEKNO_SIZE</b>&#160;&#160;&#160;56      /* 1 to 55 */</td></tr>
<tr class="separator:a213222b2455537fceb2814e9e084e95a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad632e88ecae484b09c8ca4be1bfd58b"><td class="memItemLeft" align="right" valign="top"><a id="aad632e88ecae484b09c8ca4be1bfd58b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ICAL_BY_YEARDAY_SIZE</b>&#160;&#160;&#160;386     /* 1 to 385 */</td></tr>
<tr class="separator:aad632e88ecae484b09c8ca4be1bfd58b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8f79ef6c5bb7d36d0862fea359c17fd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>ICALRECURRENCETYPE_INITIALIZER</b></td></tr>
<tr class="separator:af8f79ef6c5bb7d36d0862fea359c17fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a6ee883e25caacc3f6e5ce05d4d45a645"><td class="memItemLeft" align="right" valign="top"><a id="a6ee883e25caacc3f6e5ce05d4d45a645"></a>
typedef enum ical_invalid_rrule_handling&#160;</td><td class="memItemRight" valign="bottom"><b>ical_invalid_rrule_handling</b></td></tr>
<tr class="separator:a6ee883e25caacc3f6e5ce05d4d45a645"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15b0ec0400bb64fcfd625d5a5511db7f"><td class="memItemLeft" align="right" valign="top"><a id="a15b0ec0400bb64fcfd625d5a5511db7f"></a>
typedef struct <a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator_impl</a>&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecur_iterator</b></td></tr>
<tr class="separator:a15b0ec0400bb64fcfd625d5a5511db7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd62e4356b0f28df5892167477be989d"><td class="memItemLeft" align="right" valign="top"><a id="afd62e4356b0f28df5892167477be989d"></a>
typedef enum icalrecurrencetype_frequency&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_frequency</b></td></tr>
<tr class="separator:afd62e4356b0f28df5892167477be989d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25bc5be48c7458f25765a8f59ef1eb8c"><td class="memItemLeft" align="right" valign="top"><a id="a25bc5be48c7458f25765a8f59ef1eb8c"></a>
typedef enum icalrecurrencetype_skip&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_skip</b></td></tr>
<tr class="separator:a25bc5be48c7458f25765a8f59ef1eb8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75f2d7439c6001523b78dcef9b26ddad"><td class="memItemLeft" align="right" valign="top"><a id="a75f2d7439c6001523b78dcef9b26ddad"></a>
typedef enum icalrecurrencetype_weekday&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_weekday</b></td></tr>
<tr class="separator:a75f2d7439c6001523b78dcef9b26ddad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a85aad1aeea58a53b5a0399a2fca38890"><td class="memItemLeft" align="right" valign="top"><a id="a85aad1aeea58a53b5a0399a2fca38890"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>ical_invalid_rrule_handling</b> { <b>ICAL_RRULE_TREAT_AS_ERROR</b> = 0
, <b>ICAL_RRULE_IGNORE_INVALID</b> = 1
 }</td></tr>
<tr class="separator:a85aad1aeea58a53b5a0399a2fca38890"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a593dc289d9bb0313584701e0675cf303"><td class="memItemLeft" align="right" valign="top"><a id="a593dc289d9bb0313584701e0675cf303"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrence_array_max_values</b> { <b>ICAL_RECURRENCE_ARRAY_MAX</b> = 0x7f7f
, <b>ICAL_RECURRENCE_ARRAY_MAX_BYTE</b> = 0x7f
 }</td></tr>
<tr class="separator:a593dc289d9bb0313584701e0675cf303"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a203e6ca308804a67ff343837e7c11a61"><td class="memItemLeft" align="right" valign="top"><a id="a203e6ca308804a67ff343837e7c11a61"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_frequency</b> { <br />
&#160;&#160;<b>ICAL_SECONDLY_RECURRENCE</b> = 0
, <b>ICAL_MINUTELY_RECURRENCE</b> = 1
, <b>ICAL_HOURLY_RECURRENCE</b> = 2
, <b>ICAL_DAILY_RECURRENCE</b> = 3
, <br />
&#160;&#160;<b>ICAL_WEEKLY_RECURRENCE</b> = 4
, <b>ICAL_MONTHLY_RECURRENCE</b> = 5
, <b>ICAL_YEARLY_RECURRENCE</b> = 6
, <b>ICAL_NO_RECURRENCE</b> = 7
<br />
 }</td></tr>
<tr class="separator:a203e6ca308804a67ff343837e7c11a61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46e0128948e7c4c5c1e120061211ddea"><td class="memItemLeft" align="right" valign="top"><a id="a46e0128948e7c4c5c1e120061211ddea"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_skip</b> { <b>ICAL_SKIP_BACKWARD</b> = 0
, <b>ICAL_SKIP_FORWARD</b>
, <b>ICAL_SKIP_OMIT</b>
, <b>ICAL_SKIP_UNDEFINED</b>
 }</td></tr>
<tr class="separator:a46e0128948e7c4c5c1e120061211ddea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d3df238238f2689b2cc48b162a9507b"><td class="memItemLeft" align="right" valign="top"><a id="a0d3df238238f2689b2cc48b162a9507b"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_weekday</b> { <br />
&#160;&#160;<b>ICAL_NO_WEEKDAY</b>
, <b>ICAL_SUNDAY_WEEKDAY</b>
, <b>ICAL_MONDAY_WEEKDAY</b>
, <b>ICAL_TUESDAY_WEEKDAY</b>
, <br />
&#160;&#160;<b>ICAL_WEDNESDAY_WEEKDAY</b>
, <b>ICAL_THURSDAY_WEEKDAY</b>
, <b>ICAL_FRIDAY_WEEKDAY</b>
, <b>ICAL_SATURDAY_WEEKDAY</b>
<br />
 }</td></tr>
<tr class="separator:a0d3df238238f2689b2cc48b162a9507b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a9eb6bec2840d2b84efb14d50731b6aaa"><td class="memItemLeft" align="right" valign="top"><a id="a9eb6bec2840d2b84efb14d50731b6aaa"></a>
ical_invalid_rrule_handling&#160;</td><td class="memItemRight" valign="bottom"><b>ical_get_invalid_rrule_handling_setting</b> (void)</td></tr>
<tr class="separator:a9eb6bec2840d2b84efb14d50731b6aaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cc3b729a411ed8f1e046f1bbf84bf65"><td class="memItemLeft" align="right" valign="top"><a id="a3cc3b729a411ed8f1e046f1bbf84bf65"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>ical_set_invalid_rrule_handling_setting</b> (ical_invalid_rrule_handling newSetting)</td></tr>
<tr class="separator:a3cc3b729a411ed8f1e046f1bbf84bf65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08bc5e484eb46ba9e02fb037e2e01c29"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#a08bc5e484eb46ba9e02fb037e2e01c29">icalrecur_expand_recurrence</a> (const char *rule, time_t start, int count, time_t *array)</td></tr>
<tr class="memdesc:a08bc5e484eb46ba9e02fb037e2e01c29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills an array with the 'count' number of occurrences generated by the rrule.  <a href="icalrecur_8h.html#a08bc5e484eb46ba9e02fb037e2e01c29">More...</a><br /></td></tr>
<tr class="separator:a08bc5e484eb46ba9e02fb037e2e01c29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e33697a7125538f79ec4c17177f35cb"><td class="memItemLeft" align="right" valign="top"><a id="a0e33697a7125538f79ec4c17177f35cb"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecur_freq_to_string</b> (icalrecurrencetype_frequency kind)</td></tr>
<tr class="separator:a0e33697a7125538f79ec4c17177f35cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14daf9df313fdad9f536a7d9242b4cdc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#a14daf9df313fdad9f536a7d9242b4cdc">icalrecur_iterator_free</a> (<a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *)</td></tr>
<tr class="separator:a14daf9df313fdad9f536a7d9242b4cdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3259c2b9b03763d8ee02868816d6261a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#a3259c2b9b03763d8ee02868816d6261a">icalrecur_iterator_new</a> (struct <a class="el" href="structicalrecurrencetype.html">icalrecurrencetype</a> rule, struct <a class="el" href="structicaltimetype.html">icaltimetype</a> dtstart)</td></tr>
<tr class="separator:a3259c2b9b03763d8ee02868816d6261a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e10af320612cd7ab8c6fb6177ade3e3"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structicaltimetype.html">icaltimetype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#a2e10af320612cd7ab8c6fb6177ade3e3">icalrecur_iterator_next</a> (<a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *)</td></tr>
<tr class="separator:a2e10af320612cd7ab8c6fb6177ade3e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa15f2414c34796d414acce20ab7a2bf0"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structicaltimetype.html">icaltimetype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#aa15f2414c34796d414acce20ab7a2bf0">icalrecur_iterator_prev</a> (<a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *)</td></tr>
<tr class="separator:aa15f2414c34796d414acce20ab7a2bf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf97ae59c917f9a2856257418dcb1016"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#abf97ae59c917f9a2856257418dcb1016">icalrecur_iterator_set_end</a> (<a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *impl, struct <a class="el" href="structicaltimetype.html">icaltimetype</a> end)</td></tr>
<tr class="separator:abf97ae59c917f9a2856257418dcb1016"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af830056b191d4e037813ff27c60932cf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#af830056b191d4e037813ff27c60932cf">icalrecur_iterator_set_range</a> (<a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *impl, struct <a class="el" href="structicaltimetype.html">icaltimetype</a> from, struct <a class="el" href="structicaltimetype.html">icaltimetype</a> to)</td></tr>
<tr class="separator:af830056b191d4e037813ff27c60932cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab632c95c37375ef11d62d8742e8406d5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#ab632c95c37375ef11d62d8742e8406d5">icalrecur_iterator_set_start</a> (<a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *impl, struct <a class="el" href="structicaltimetype.html">icaltimetype</a> start)</td></tr>
<tr class="separator:ab632c95c37375ef11d62d8742e8406d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed40c56e1a7955246feade6926c09ac3"><td class="memItemLeft" align="right" valign="top"><a id="aed40c56e1a7955246feade6926c09ac3"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecur_skip_to_string</b> (icalrecurrencetype_skip kind)</td></tr>
<tr class="separator:aed40c56e1a7955246feade6926c09ac3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6011fe4f7973affecf45fd377de2b83a"><td class="memItemLeft" align="right" valign="top"><a id="a6011fe4f7973affecf45fd377de2b83a"></a>
icalrecurrencetype_frequency&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecur_string_to_freq</b> (const char *str)</td></tr>
<tr class="separator:a6011fe4f7973affecf45fd377de2b83a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1285d50b79d9558543716fdce98d5c4f"><td class="memItemLeft" align="right" valign="top"><a id="a1285d50b79d9558543716fdce98d5c4f"></a>
icalrecurrencetype_skip&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecur_string_to_skip</b> (const char *str)</td></tr>
<tr class="separator:a1285d50b79d9558543716fdce98d5c4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad60e4e0c33acf7f90dbbf891e2326a8e"><td class="memItemLeft" align="right" valign="top"><a id="ad60e4e0c33acf7f90dbbf891e2326a8e"></a>
icalrecurrencetype_weekday&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecur_string_to_weekday</b> (const char *str)</td></tr>
<tr class="separator:ad60e4e0c33acf7f90dbbf891e2326a8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab67ef19d5a1614ae832a5419731de38a"><td class="memItemLeft" align="right" valign="top"><a id="ab67ef19d5a1614ae832a5419731de38a"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecur_weekday_to_string</b> (icalrecurrencetype_weekday kind)</td></tr>
<tr class="separator:ab67ef19d5a1614ae832a5419731de38a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45f67a448ee73729ad1203276434ee52"><td class="memItemLeft" align="right" valign="top"><a id="a45f67a448ee73729ad1203276434ee52"></a>
char *&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_as_string</b> (struct <a class="el" href="structicalrecurrencetype.html">icalrecurrencetype</a> *recur)</td></tr>
<tr class="separator:a45f67a448ee73729ad1203276434ee52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27204e0666e4e4e3b7d2ef0f159ac5a3"><td class="memItemLeft" align="right" valign="top"><a id="a27204e0666e4e4e3b7d2ef0f159ac5a3"></a>
char *&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_as_string_r</b> (struct <a class="el" href="structicalrecurrencetype.html">icalrecurrencetype</a> *recur)</td></tr>
<tr class="separator:a27204e0666e4e4e3b7d2ef0f159ac5a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1bf76a6221d8aa78387b20a537491ce"><td class="memItemLeft" align="right" valign="top"><a id="ad1bf76a6221d8aa78387b20a537491ce"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_clear</b> (struct <a class="el" href="structicalrecurrencetype.html">icalrecurrencetype</a> *r)</td></tr>
<tr class="separator:ad1bf76a6221d8aa78387b20a537491ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96c160e7e6b16e0e369c540f2ee164c7"><td class="memItemLeft" align="right" valign="top">enum icalrecurrencetype_weekday&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#a96c160e7e6b16e0e369c540f2ee164c7">icalrecurrencetype_day_day_of_week</a> (short day)</td></tr>
<tr class="memdesc:a96c160e7e6b16e0e369c540f2ee164c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decodes a day to a weekday.  <a href="icalrecur_8h.html#a96c160e7e6b16e0e369c540f2ee164c7">More...</a><br /></td></tr>
<tr class="separator:a96c160e7e6b16e0e369c540f2ee164c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa730e9ac327064456902076b718400f4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#aa730e9ac327064456902076b718400f4">icalrecurrencetype_day_position</a> (short day)</td></tr>
<tr class="memdesc:aa730e9ac327064456902076b718400f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decodes a day to a position of the weekday.  <a href="icalrecur_8h.html#aa730e9ac327064456902076b718400f4">More...</a><br /></td></tr>
<tr class="separator:aa730e9ac327064456902076b718400f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1de1894ce541ebf3d5a3cbaf6c5978e1"><td class="memItemLeft" align="right" valign="top">short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#a1de1894ce541ebf3d5a3cbaf6c5978e1">icalrecurrencetype_encode_day</a> (enum icalrecurrencetype_weekday weekday, int position)</td></tr>
<tr class="separator:a1de1894ce541ebf3d5a3cbaf6c5978e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9d7b1ae411cd1eeb7464ee481e1609b"><td class="memItemLeft" align="right" valign="top">short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#aa9d7b1ae411cd1eeb7464ee481e1609b">icalrecurrencetype_encode_month</a> (int month, int is_leap)</td></tr>
<tr class="separator:aa9d7b1ae411cd1eeb7464ee481e1609b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e8ebcf355ba22299f553f8f5e657926"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structicalrecurrencetype.html">icalrecurrencetype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#a0e8ebcf355ba22299f553f8f5e657926">icalrecurrencetype_from_string</a> (const char *str)</td></tr>
<tr class="separator:a0e8ebcf355ba22299f553f8f5e657926"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37565d0a4c56c67bd08b556d58f59b5c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="icalrecur_8h.html#a37565d0a4c56c67bd08b556d58f59b5c">icalrecurrencetype_month_is_leap</a> (short month)</td></tr>
<tr class="separator:a37565d0a4c56c67bd08b556d58f59b5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcf246d5de93b17c7c72444163671297"><td class="memItemLeft" align="right" valign="top"><a id="adcf246d5de93b17c7c72444163671297"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_month_month</b> (short month)</td></tr>
<tr class="separator:adcf246d5de93b17c7c72444163671297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69fc2030e8776dc3184cb88ca4e2dd70"><td class="memItemLeft" align="right" valign="top"><a id="a69fc2030e8776dc3184cb88ca4e2dd70"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_rscale_is_supported</b> (void)</td></tr>
<tr class="separator:a69fc2030e8776dc3184cb88ca4e2dd70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a537c373703f23e8c86f3da3324123f44"><td class="memItemLeft" align="right" valign="top"><a id="a537c373703f23e8c86f3da3324123f44"></a>
<a class="el" href="icalarray_8h.html#ad36143942d5ac4709b68fff41615e598">icalarray</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>icalrecurrencetype_rscale_supported_calendars</b> (void)</td></tr>
<tr class="separator:a537c373703f23e8c86f3da3324123f44"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Routines for dealing with recurring time. </p>
<p>How to use:</p>
<p>1) Get a rule and a start time from a component</p>
<div class="fragment"><div class="line">icalproperty rrule;</div>
<div class="line"><span class="keyword">struct </span><a class="code" href="structicalrecurrencetype.html">icalrecurrencetype</a> recur;</div>
<div class="line"><span class="keyword">struct </span><a class="code" href="structicaltimetype.html">icaltimetype</a> dtstart;</div>
<div class="line"> </div>
<div class="line">rrule = icalcomponent_get_first_property(comp,ICAL_RRULE_PROPERTY);</div>
<div class="line">recur = icalproperty_get_rrule(rrule);</div>
<div class="line">start = icalproperty_get_dtstart(dtstart);</div>
<div class="ttc" id="astructicalrecurrencetype_html"><div class="ttname"><a href="structicalrecurrencetype.html">icalrecurrencetype</a></div><div class="ttdef"><b>Definition:</b> icalrecur.h:152</div></div>
<div class="ttc" id="astructicaltimetype_html"><div class="ttname"><a href="structicaltimetype.html">icaltimetype</a></div><div class="ttdef"><b>Definition:</b> icaltime.h:105</div></div>
</div><!-- fragment --><p>Or, just make them up:</p>
<div class="fragment"><div class="line">recur = <a class="code" href="icalrecur_8h.html#a0e8ebcf355ba22299f553f8f5e657926">icalrecurrencetype_from_string</a>(<span class="stringliteral">&quot;FREQ=YEARLY;BYDAY=SU,WE&quot;</span>);</div>
<div class="line">dtstart = <a class="code" href="icaltime_8h.html#a1b66b9f52a9823b95e4cd33f9dd9b8e5">icaltime_from_string</a>(<span class="stringliteral">&quot;19970101T123000&quot;</span>)</div>
<div class="ttc" id="aicalrecur_8h_html_a0e8ebcf355ba22299f553f8f5e657926"><div class="ttname"><a href="icalrecur_8h.html#a0e8ebcf355ba22299f553f8f5e657926">icalrecurrencetype_from_string</a></div><div class="ttdeci">struct icalrecurrencetype icalrecurrencetype_from_string(const char *str)</div><div class="ttdef"><b>Definition:</b> icalrecur.c:642</div></div>
<div class="ttc" id="aicaltime_8h_html_a1b66b9f52a9823b95e4cd33f9dd9b8e5"><div class="ttname"><a href="icaltime_8h.html#a1b66b9f52a9823b95e4cd33f9dd9b8e5">icaltime_from_string</a></div><div class="ttdeci">struct icaltimetype icaltime_from_string(const char *str)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> icaltime.c:339</div></div>
</div><!-- fragment --><p>2) Create an iterator</p>
<div class="fragment"><div class="line"><a class="code" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *ritr;</div>
<div class="line">ritr = <a class="code" href="icalrecur_8h.html#a3259c2b9b03763d8ee02868816d6261a">icalrecur_iterator_new</a>(recur,start);</div>
<div class="ttc" id="aicalrecur_8h_html_a3259c2b9b03763d8ee02868816d6261a"><div class="ttname"><a href="icalrecur_8h.html#a3259c2b9b03763d8ee02868816d6261a">icalrecur_iterator_new</a></div><div class="ttdeci">icalrecur_iterator * icalrecur_iterator_new(struct icalrecurrencetype rule, struct icaltimetype dtstart)</div><div class="ttdef"><b>Definition:</b> icalrecur.c:1939</div></div>
<div class="ttc" id="astructicalrecur__iterator__impl_html"><div class="ttname"><a href="structicalrecur__iterator__impl.html">icalrecur_iterator_impl</a></div><div class="ttdef"><b>Definition:</b> icalrecur.c:941</div></div>
</div><!-- fragment --><p>3) Iterator over the occurrences</p>
<div class="fragment"><div class="line"><span class="keyword">struct </span><a class="code" href="structicaltimetype.html">icaltimetype</a> next;</div>
<div class="line"><span class="keywordflow">while</span> (next = <a class="code" href="icalrecur_8h.html#a2e10af320612cd7ab8c6fb6177ade3e3">icalrecur_iterator_next</a>(ritr)</div>
<div class="line">       &amp;&amp; !<a class="code" href="icaltime_8h.html#a97483d9daf2fc8f8b1bbdc0c75ced095">icaltime_is_null_time</a>(next){</div>
<div class="line">        Do something with next</div>
<div class="line">}</div>
<div class="ttc" id="aicalrecur_8h_html_a2e10af320612cd7ab8c6fb6177ade3e3"><div class="ttname"><a href="icalrecur_8h.html#a2e10af320612cd7ab8c6fb6177ade3e3">icalrecur_iterator_next</a></div><div class="ttdeci">struct icaltimetype icalrecur_iterator_next(icalrecur_iterator *)</div><div class="ttdef"><b>Definition:</b> icalrecur.c:3158</div></div>
<div class="ttc" id="aicaltime_8h_html_a97483d9daf2fc8f8b1bbdc0c75ced095"><div class="ttname"><a href="icaltime_8h.html#a97483d9daf2fc8f8b1bbdc0c75ced095">icaltime_is_null_time</a></div><div class="ttdeci">int icaltime_is_null_time(const struct icaltimetype t)</div><div class="ttdoc">Returns true if the time is null.</div><div class="ttdef"><b>Definition:</b> icaltime.c:600</div></div>
</div><!-- fragment --><p>Note that the time returned by icalrecur_iterator_next is in whatever timezone that dtstart is in. </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="acec51b2d651f24e31b00627b60b12728"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acec51b2d651f24e31b00627b60b12728">&#9670;&nbsp;</a></span>ICAL_BY_SECOND_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ICAL_BY_SECOND_SIZE&#160;&#160;&#160;62      /* 0 to 60 */</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Recurrence type routines </p>

</div>
</div>
<a id="af8f79ef6c5bb7d36d0862fea359c17fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8f79ef6c5bb7d36d0862fea359c17fd">&#9670;&nbsp;</a></span>ICALRECURRENCETYPE_INITIALIZER</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ICALRECURRENCETYPE_INITIALIZER</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">    {                    \</div>
<div class="line">    ICAL_NO_RECURRENCE,                  <span class="comment">/* freq         */</span> \</div>
<div class="line">    ICALTIMETYPE_INITIALIZER,            <span class="comment">/* until        */</span> \</div>
<div class="line">    0,                                   <span class="comment">/* count        */</span> \</div>
<div class="line">    1,                                   <span class="comment">/* interval     */</span> \</div>
<div class="line">    ICAL_MONDAY_WEEKDAY,                 <span class="comment">/* week_start   */</span> \</div>
<div class="line">    { ICAL_RECURRENCE_ARRAY_MAX_BYTE },  <span class="comment">/* by_second    */</span> \</div>
<div class="line">    { ICAL_RECURRENCE_ARRAY_MAX_BYTE },  <span class="comment">/* by_minute    */</span> \</div>
<div class="line">    { ICAL_RECURRENCE_ARRAY_MAX_BYTE },  <span class="comment">/* by_hour      */</span> \</div>
<div class="line">    { ICAL_RECURRENCE_ARRAY_MAX_BYTE },  <span class="comment">/* by_day       */</span> \</div>
<div class="line">    { ICAL_RECURRENCE_ARRAY_MAX_BYTE },  <span class="comment">/* by_month_day */</span> \</div>
<div class="line">    { ICAL_RECURRENCE_ARRAY_MAX_BYTE },  <span class="comment">/* by_year_day  */</span> \</div>
<div class="line">    { ICAL_RECURRENCE_ARRAY_MAX_BYTE },  <span class="comment">/* by_week_no   */</span> \</div>
<div class="line">    { ICAL_RECURRENCE_ARRAY_MAX_BYTE },  <span class="comment">/* by_month     */</span> \</div>
<div class="line">    { ICAL_RECURRENCE_ARRAY_MAX_BYTE },  <span class="comment">/* by_set_pos   */</span> \</div>
<div class="line">    NULL,                                <span class="comment">/* rscale       */</span> \</div>
<div class="line">    ICAL_SKIP_OMIT                       <span class="comment">/* skip         */</span> \</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a08bc5e484eb46ba9e02fb037e2e01c29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08bc5e484eb46ba9e02fb037e2e01c29">&#9670;&nbsp;</a></span>icalrecur_expand_recurrence()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int icalrecur_expand_recurrence </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>rule</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">time_t *&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills an array with the 'count' number of occurrences generated by the rrule. </p>
<p>Specifically, this fills <code>array</code> up with at most 'count' time_t values, each representing an occurrence time in seconds past the POSIX epoch.</p>
<p>Note that the times are returned in UTC, but the times are calculated in local time. You will have to convert the results back into local time before using them. </p>

</div>
</div>
<a id="a14daf9df313fdad9f536a7d9242b4cdc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14daf9df313fdad9f536a7d9242b4cdc">&#9670;&nbsp;</a></span>icalrecur_iterator_free()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void icalrecur_iterator_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Frees the iterator. </p>

</div>
</div>
<a id="a3259c2b9b03763d8ee02868816d6261a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3259c2b9b03763d8ee02868816d6261a">&#9670;&nbsp;</a></span>icalrecur_iterator_new()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a>* icalrecur_iterator_new </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structicalrecurrencetype.html">icalrecurrencetype</a>&#160;</td>
          <td class="paramname"><em>rule</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structicaltimetype.html">icaltimetype</a>&#160;</td>
          <td class="paramname"><em>dtstart</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates a new recurrence rule iterator, starting at DTSTART. </p>

</div>
</div>
<a id="a2e10af320612cd7ab8c6fb6177ade3e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e10af320612cd7ab8c6fb6177ade3e3">&#9670;&nbsp;</a></span>icalrecur_iterator_next()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structicaltimetype.html">icaltimetype</a> icalrecur_iterator_next </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *&#160;</td>
          <td class="paramname"><em>impl</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gets the next occurrence from an iterator. </p>

</div>
</div>
<a id="aa15f2414c34796d414acce20ab7a2bf0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa15f2414c34796d414acce20ab7a2bf0">&#9670;&nbsp;</a></span>icalrecur_iterator_prev()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structicaltimetype.html">icaltimetype</a> icalrecur_iterator_prev </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *&#160;</td>
          <td class="paramname"><em>impl</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gets the previous occurrence from an iterator. </p><dl class="section since"><dt>Since</dt><dd>3.1 </dd></dl>

</div>
</div>
<a id="abf97ae59c917f9a2856257418dcb1016"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf97ae59c917f9a2856257418dcb1016">&#9670;&nbsp;</a></span>icalrecur_iterator_set_end()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int icalrecur_iterator_set_end </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *&#160;</td>
          <td class="paramname"><em>impl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structicaltimetype.html">icaltimetype</a>&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the date-time at which the iterator will stop at the latest. Values equal to or greater than end will not be returned by the iterator. </p>

</div>
</div>
<a id="af830056b191d4e037813ff27c60932cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af830056b191d4e037813ff27c60932cf">&#9670;&nbsp;</a></span>icalrecur_iterator_set_range()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int icalrecur_iterator_set_range </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *&#160;</td>
          <td class="paramname"><em>impl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structicaltimetype.html">icaltimetype</a>&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structicaltimetype.html">icaltimetype</a>&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the date-times over which the iterator will run, where <code>from</code> is a value between DTSTART and UNTIL.</p>
<p>If <code>to</code> is null time, the forward iterator will return values up to and including UNTIL (if present), otherwise up to the year 2582.</p>
<p>if <code>to</code> is non-null time and later than <code>from</code>, the forward iterator will return values up to and including 'to'.</p>
<p>If <code>to</code> is non-null time and earlier than <code>from</code>, the reverse iterator will be set to start at <code>from</code> and will return values down to and including <code>to</code>.</p>
<p>NOTE: CAN NOT be used with RRULEs that contain COUNT. </p><dl class="section since"><dt>Since</dt><dd>3.1 </dd></dl>

</div>
</div>
<a id="ab632c95c37375ef11d62d8742e8406d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab632c95c37375ef11d62d8742e8406d5">&#9670;&nbsp;</a></span>icalrecur_iterator_set_start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int icalrecur_iterator_set_start </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structicalrecur__iterator__impl.html">icalrecur_iterator</a> *&#160;</td>
          <td class="paramname"><em>impl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structicaltimetype.html">icaltimetype</a>&#160;</td>
          <td class="paramname"><em>start</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the date-time at which the iterator will start, where <code>start</code> is a value between DTSTART and UNTIL.</p>
<p>NOTE: CAN NOT be used with RRULEs that contain COUNT. </p><dl class="section since"><dt>Since</dt><dd>3.0 </dd></dl>

</div>
</div>
<a id="a96c160e7e6b16e0e369c540f2ee164c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96c160e7e6b16e0e369c540f2ee164c7">&#9670;&nbsp;</a></span>icalrecurrencetype_day_day_of_week()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum icalrecurrencetype_weekday icalrecurrencetype_day_day_of_week </td>
          <td>(</td>
          <td class="paramtype">short&#160;</td>
          <td class="paramname"><em>day</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Decodes a day to a weekday. </p>
<dl class="section return"><dt>Returns</dt><dd>The decoded day of the week. 1 is Monday, 2 is Tuesday, etc. A position of 0 means 'any' or 'every'.</dd></dl>
<p>The 'day' element of icalrecurrencetype_weekday is encoded to allow representation of both the day of the week ( Monday, Tuesday), but also the Nth day of the week ( First tuesday of the month, last thursday of the year) These routines decode the day values.</p>
<p>The day's position in the period ( Nth-ness) and the numerical value of the day are encoded together as: pos*7 + dow.</p>
<p>A position of 0 means 'any' or 'every'. </p>

</div>
</div>
<a id="aa730e9ac327064456902076b718400f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa730e9ac327064456902076b718400f4">&#9670;&nbsp;</a></span>icalrecurrencetype_day_position()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int icalrecurrencetype_day_position </td>
          <td>(</td>
          <td class="paramtype">short&#160;</td>
          <td class="paramname"><em>day</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Decodes a day to a position of the weekday. </p>
<dl class="section return"><dt>Returns</dt><dd>The position of the day in the week. 0 == any of day of week. 1 == first, 2 = second, -2 == second to last, etc. 0 means 'any' or 'every'. </dd></dl>

</div>
</div>
<a id="a1de1894ce541ebf3d5a3cbaf6c5978e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1de1894ce541ebf3d5a3cbaf6c5978e1">&#9670;&nbsp;</a></span>icalrecurrencetype_encode_day()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">short icalrecurrencetype_encode_day </td>
          <td>(</td>
          <td class="paramtype">enum icalrecurrencetype_weekday&#160;</td>
          <td class="paramname"><em>weekday</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Encodes the <code>weekday</code> and <code>position</code> into a form, which can be stored to <a class="el" href="structicalrecurrencetype.html#abf0eb04e3bb9028e18c9c4c1e0462b9d" title="Encoded value.">icalrecurrencetype::by_day</a> array. Use <a class="el" href="icalrecur_8h.html#a96c160e7e6b16e0e369c540f2ee164c7" title="Decodes a day to a weekday.">icalrecurrencetype_day_day_of_week()</a> and <a class="el" href="icalrecur_8h.html#aa730e9ac327064456902076b718400f4" title="Decodes a day to a position of the weekday.">icalrecurrencetype_day_position()</a> to split the encoded value back into the parts. </p><dl class="section since"><dt>Since</dt><dd>3.1 </dd></dl>

</div>
</div>
<a id="aa9d7b1ae411cd1eeb7464ee481e1609b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9d7b1ae411cd1eeb7464ee481e1609b">&#9670;&nbsp;</a></span>icalrecurrencetype_encode_month()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">short icalrecurrencetype_encode_month </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>is_leap</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Encodes the <code>month</code> and the <code>is_leap</code> into a form, which can be stored to <a class="el" href="structicalrecurrencetype.html#af3f6d789f51c7772879b6c8e3101af9e" title="Encoded value.">icalrecurrencetype::by_month</a> array. Use <a class="el" href="icalrecur_8h.html#a37565d0a4c56c67bd08b556d58f59b5c">icalrecurrencetype_month_is_leap()</a> and icalrecurrencetype_month_month() to split the encoded value back into the parts </p><dl class="section since"><dt>Since</dt><dd>3.1 </dd></dl>

</div>
</div>
<a id="a0e8ebcf355ba22299f553f8f5e657926"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e8ebcf355ba22299f553f8f5e657926">&#9670;&nbsp;</a></span>icalrecurrencetype_from_string()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structicalrecurrencetype.html">icalrecurrencetype</a> icalrecurrencetype_from_string </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Convert between strings and recurrencetype structures. </p>

</div>
</div>
<a id="a37565d0a4c56c67bd08b556d58f59b5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37565d0a4c56c67bd08b556d58f59b5c">&#9670;&nbsp;</a></span>icalrecurrencetype_month_is_leap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int icalrecurrencetype_month_is_leap </td>
          <td>(</td>
          <td class="paramtype">short&#160;</td>
          <td class="paramname"><em>month</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The <code>month</code> element of the by_month array is encoded to allow representation of the "L" leap suffix (RFC 7529). These routines decode the month values.</p>
<p>The "L" suffix is encoded by setting a high-order bit. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Apr 9 2022 08:46:36 for Libical API Documentation by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>